in reply to Regular Expressions and Question Marks

Why not just leave the ?'s out?

Will this work for you?

$matchtext = "http://www.foo.bar/somepage.pl"; $substitutetext = "http://www.new.site/somenewpage"; s/$matchtext/$substitutetext/;

Replies are listed 'Best First'.
Re: Re: Regular Expressions and Question Marks
by mr_dont (Beadle) on Mar 14, 2002 at 00:00 UTC
    Actually, yes, I should have just left them out!