> I need find the IMG tag in the line below, substituting for it the
> phrase, "IMAGE REMOVED"
> ***
> <P align=center><IMG SRC="" ALT="LARGE-CAP VALUE INDEX FUND
> LOGO)"></P>
> ***
> Notice the unbalanced parentheses. There is no opening parenthesis to
> match the closing one.
>
> I have used the following pattern matching expressions in this attempt:
>
> /(<img\s+([^>]*)>)/gi
> /(<img([^>]*)>)/gi
> /(<img(.*?)>)/gi
>
> I get the same error message every time:
>
> Uncaught exception from user code:
> Unmatched ) in regex; marked by <-- HERE in m/<IMG SRC=""
> ALT="LARGE-CAP VALUE INDEX FUND LOGO) <-- HERE ">/
>
> Any hints, tips, or suggestions would be appreciated.
>
> --
>
> Craig [ "Missed it by THATMUCH" ]
Craig I'm not sure what your trying to do but when I run what I think your doing I get the answer I thought you wanted.
----
$_='<P align=center><IMG SRC="" ALT="LARGE-CAP VALUE INDEX FUND LOGO)"></P>';
s/<img(.*?)>/'IMAGE REMOVED'/gi;
print $_;
----
output:
<P align=center>'IMAGE REMOVED'</P>
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
