Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
this is the regex:
and this is the error message:$instream =~ s/<FONT(.+?)COLOR\s?=\s?('|")?(\#......)\2(.+?)SIZE\s?=\s +?('|")?(\d+)\5(.+?)FACE\s?=\s?('|")?(.+?)\8[^>]*>\s*/genStyleCSF($3,$ +6,$9)/ieg;
like i said, it's probably something i'm overlooking, but any help would be appreciated.Backslash found where operator expected at line 257, near ")\" (Missing operator before \?) Backslash found where operator expected at line 258, near ")\" (Might be a runaway multi-line ** string starting on line 257) (Missing operator before \?) syntax error at line 257, near ")\"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex confusion
by wog (Curate) on Oct 07, 2001 at 08:32 UTC | |
by Anonymous Monk on Oct 07, 2001 at 08:45 UTC | |
by mandog (Curate) on Oct 07, 2001 at 18:39 UTC | |
by chipmunk (Parson) on Oct 07, 2001 at 18:20 UTC |