in reply to Re^2: Eugh, regex :(
in thread Eugh, regex :(
% cat 753064 $post_message =~ s%\Q[URL=\E([\?\%\:\/a-zA-Z0-9_\-\.]+)\Q][img]\E([\?\ +%\:\/a-zA-Z0-9_\-\.]+)\Q[/img][/URL]\E%gix; % perl -Mdiagnostics 753064 Substitution replacement not terminated at 753064 line 1 (#1) (F) The lexer couldn't find the final delimiter of an s/// or s{}{ +} construct. Remember that bracketing delimiters count nesting leve +l. Missing the leading $ from variable $s may cause this error. Uncaught exception from user code: Substitution replacement not terminated at 753064 line 1. at 753064 line 1
The error message says it all, if you want to substitute, you should tell perl, whats your substitution is.
-- Frank
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Eugh, regex :(
by ultranerds (Hermit) on Mar 25, 2009 at 09:46 UTC | |
by haoess (Curate) on Mar 25, 2009 at 09:58 UTC |
In Section
Seekers of Perl Wisdom