in reply to This looks like someone sneezed and hit the keyboard
/ .* # Match any quantity of any character (or # none at all) ( # group together, and capture. [\$#\%>~] # match any one of the following: $#%>~ | # OR \@\w~\$ # match literal @, a word character, and $ | # OR \\\[\\e\[0m\\\] \[0m # match "\[\e[0m\] [0m" ) # end capturing / grouping. \s? # match a single optional whitespace /x # End regexp.
So you put that all together and you get a regexp that will match a pretty wierd looking string.
The following strings should match (and MANY others too):
"Hi, I'm Dave\[\e[0m\] [0m"
"121#@$14asdf$"
"@h~$"
Looks pretty peculiar to me.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: This looks like someone sneezed and hit the keyboard
by Theo (Priest) on Feb 03, 2004 at 15:41 UTC | |
by bunnyman (Hermit) on Feb 03, 2004 at 16:33 UTC | |
by MCS (Monk) on Feb 03, 2004 at 17:05 UTC | |
by ysth (Canon) on Feb 03, 2004 at 16:59 UTC |