Regular expressions |
< (\s*?) [^>]*>.*?</\1>|<.*? /> |
The |
|
does not match |
Abc|123| |
Regular expressions |
^[^<> ' ~!/@\#}$%:;) (_^{&*=| ') +]+$ |
The |
This is a test |
does not match |
|
Regular expressions |
<! --. *?--> |
The |
<! --<h1>this text has been removed</h1> --> | <! --Yada--> |
does not match |
<h1>this text has not been removed</h1> |
Regular expressions |
(\[(\w+) \s* (([\w]*) = (' |")? ( [a-za-z0-9|:| \/|=|-|.| \?| &] *) (\5)?) *\]) ([a-za-z0-9|:| \/|=|-|.| \?| &|\s]+) (\[\/\2\]) |
The |
[link url="http://www.domain.com/file.extension?getvar=value&secondvar=value"] Link[/li |
does not match |
[A]whatever[/b] | [a var1=something var2=somethingelse]whatever[/a] | [A]whatever[a] |
Regular expressions |
Href=[\ "\"] (http:\/\/|\.\/|\/)? \w+ (\.\w+) * (\/\w+ (\.\w+)?) * (\/|\?\w*=\w* (&\w*=\w*) *)? [\"\‘] |
The |
href= "www.yahoo.com" | href= "http://localhost/blah/" | href= "Eek" |
does not match |
href= "" | Href=eek | Href= "bad Example" |
Regular expressions |
" ([^"] (?:\ \.| [^\\"] *) " |
The |
" This is a \"string\". " |
does not match |
" This is a \"string\". |
Regular expressions |
(? I:on (Blur|c (Hange|lick) |dblclick|focus|keypress| ( Key|mouse) (Down|up) | (un) load|mouse (move|o (ut|ver)) |reset|s (Elect|ubmit)) |
The |
|
onclick | onsubmit | onmouseover |
|
does not match |
Click | Onandon | Mickeymouse |
Regular expressions |
(? s)/\*.*\*/ |
The |
/* .................... */ | /* Imagine lots of lines here */ |
does not match |
*/Malformed OPENING tag * * | /* Malformed closing tag/* |
Regular expressions |
< (\s*?) [^>]*>.*?</\1>|<.*? /> |
The |
|
does not match |
Abc|123| |
Regular expressions |
\xa9 |
The |
? |
does not match |
Anything |
Regular expressions |
SRC[^>] *[^/]. (?: jpg|bmp|gif) (?:\ "|\ ') |
The |
Src=", .... /images/image.jpg" | src="http://domain.com/images/image.jpg" | Src= ' d:\w |
does not match |
Src=", .... /images/image.tif" | src="cid:value" |
Regular expressions |
/\*[\d\d]*?\*/ |
The |
/* My comment * * | /* My Multiline comment * * | /* My nested comment */ |
does not match |
*/Anything here/* | Anything between 2 seperate comments | \* *\ |
Regular expressions |
<[a-za-z]+ (\s+[a-za-z]+\s*=\s* ("[^"]*) "| ([^ ']*) ') *\s*/> |
The |
|
does not match |
|
|
JavaScript regex matches HTML