in reply to This looks like someone sneezed and hit the keyboard
which basically saysm/ .* ( [\$#\%>~] | \@\w~\$ | \\ \[ \\ e \[ 0m \\ \] \s \[ 0m ) \s? /x
With the "one of these three things" going into the Perl variable $1. In short, this regular expression isn't matching what you think its supposed to be matching. The third alternative looks like it's inteded to capture an escape sequence of some sort.
So yeah, it looks pretty messy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x2 This looks like someone sneezed and hit the keyboard (whitespace semantics in /x REs)
by grinder (Bishop) on Feb 03, 2004 at 08:28 UTC | |
|
Re: Re: This looks like someone sneezed and hit the keyboard
by MCS (Monk) on Feb 03, 2004 at 16:54 UTC |