Heh - just saw this. I actually noticed the problem a while back, but my work and travel have kept me from uploadng my fix. The regex is nice, but it makes my brain hurt most of the time.
I did this:
Code:string kmon = monname; if (substring(kmon,0,1)==" ") { kmon = substring(kmon,1) ; } if (substring(kmon,0,2)=="a ") { kmon = substring(kmon,2) ; } if (substring(kmon,0,3)=="an ") { kmon = substring(kmon,3) ; } if (length(kmon)>3 && substring(kmon,0,4)=="the ") { kmon = substring(kmon,4) ; } if (length(kmon)>4 && substring(kmon,0,5)=="some ") { kmon = substring(kmon,5) ; }
ckb
Just noticed that the script has issues with monster names that contain accented characters. *This is easily fixed:
Code:matcher nam = create_matcher("(?<=(id='monname'>))[B]([^<]+)[/B]",results); * string monname = "";
what lines do these go on or replace?