in reply to Re: Read RegEx from file
in thread Read RegEx from file
Many thanks for that - most useful.
In answer to some specific questions:
Silly me regarding \s - these are nbsp characters embedded within a quoted string, so replacing with " " works fine.
Re @ - I'm an idiot. I did a search for the hex sequence, saw it was a @, thought to myself "oh - I thought @ was ascii, oh well", and did the replacement (why does utf bother to encode a character that exists in ascii?).
UPDATE - utf does have an alternative for @, but I've just realised that that particular sequence is a registration mark - in this case, a doctor is using it as a short-hand for 'right' in a word doc, and then pasting into a db.
And, yes, my escaping habits are terrible and I am suitably ashamed.
Tom Melly, pm (at) cursingmaggot (stop) co (stop) ukmap{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
|
|---|