in reply to quotes in HTML killing regex

It fails to find the first regex match. Seems like the quotes in the javascript is killing the match. Any suggestions?
Convert this to valid perl
if (javascript:SubmitFormPost\(\"(.*)\"\)/) mech1->get($1); } else { # no new page }

Replies are listed 'Best First'.
Re^2: quotes in HTML killing regex
by jhoskins98 (Initiate) on Nov 01, 2008 at 10:52 UTC
    Thanks - serves me right for just retype something rather than cut and paste - for this post.