rocketman has asked for the wisdom of the Perl Monks concerning the following question:
The code that generates this:Scalar found where operator expected at (eval 304) line 1, near"s/(.{$ +len}[^&#?(w{2,7});|\xeb|\x(w{2})|\\x(w{2})|\(w{2,7})|\'|\'|'|\"|\"|\" +|\\|w{5}|[a-z]|<(.*)>|</?.*>])/$1"
Thank you,if(eval("\$str =~ s/(.{\$len}[^&#?(\w{2,7});|\\xeb|\\x(\w{2})|\\\\x(\w +{2})|\\(\w{2,7})|\\'|\\\'|\'|\\\"|\\\"|\\\"|\\\\|\w{5}|[a-z]|<(.*)>|< +\/?.*>])/\$1<wbr>/mgi;")) { #ok }
20070911 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange regexp problem
by moritz (Cardinal) on Aug 28, 2007 at 08:29 UTC | |
by akho (Hermit) on Aug 28, 2007 at 09:19 UTC | |
by moritz (Cardinal) on Aug 28, 2007 at 09:37 UTC | |
|
Re: Strange regexp problem
by akho (Hermit) on Aug 28, 2007 at 09:14 UTC | |
by rocketman (Initiate) on Aug 28, 2007 at 10:11 UTC | |
by moritz (Cardinal) on Aug 28, 2007 at 10:44 UTC | |
by akho (Hermit) on Aug 28, 2007 at 11:52 UTC | |
|
Re: Strange regexp problem
by graff (Chancellor) on Aug 29, 2007 at 01:30 UTC |