|
|
|
|
|
|
| ... |
The serpent is crawling inside of
your ear
He says you must vote for what you
want to hear
Dont matter whats wrong as long as
youre alright
So pull yourself stupid and rob
yourself blind
|
|
(dickinson/gers)
|
|
|
|
|
|
Examples |
|
If you have an interesting regular expression that you want to share it with others please send it to me and I will enter it here. Or if you need a regular expression for a specific task don't be shy in asking me for help.
Search for a src attribute inside an HTML file:
\ssrc="(.*?)"
Match a date:
\d\d-\d\d-\d\d\d\d or \d\d-\d\d-\d{4}
Simple regexp for matching an email (this can be actually a lot more complex):
\w+@[\w\.]+\.\w{2,4}
A simple regexp to find all the tag names inside an XML file.
<[/!]?([^\s>]*)\s*[^>]*>
|
|
|