Hello,
I used following code to estimate PubMed hit of certain combination of words.
pubMedHit[str_] := Module[{},
str3 = StringReplace[str, " " -> "+"];
str2 = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=%22" <> str3 <> "%22";
imp = Import[str2, "XML"];
count = Cases[imp, XMLElement["Count", _, _], 3];
count[[All, -1]][[1, 1]] // ToExpression
]
This worked fine until I upgrade Mathematica to 10.0.2. Now the code suddenly stop working. It seems backslash is automatically inserted after certain character in str2 (between "&" and "term") in newer version. Is there any way to avoid this?
Takashi Miura.