in reply to quite weird regexp
Why? Because the designers of this flatfile database decreed that "//" would be interpreted as the beginning of a comment, thus causing everything after "http://" to be lost. So I escaped those particular forward slashes using s///; It looks atrocious, but it did the job.while(<>){ #take input from STDIN s/\/\//\\\/\\\//g; print STDOUT; }
Using an alternate delimiter wouldn't eliminate the need for all the forward and back slashes, but at least it would show me (or another trying to decipher the above atrocity) where the expression was delimited.
-----
"Computeri non cogitant, ergo non sunt"
|
---|