Some Regex ("regular expressions")

Some examples of possible regular expressions *

^(?!http://www) All URLs that DON'T start with "http://www"
^http://www All URLs that DO start with "http://www"
^.*\.asp URLs with ".asp" in them
^.*\? URLs with parameters ("?" in them)

 

Some of the symbols used in regular expressions *

^ beginning of line
(?!aaa) not "aaa"
\s escape symbol "s", make sure it comes like it is (needed for these: ".&?\()[]$^" )
. any single character
* zero or more matches of preceded
+ one or more matches of whatever preceded

 

 

* Note: Regex is still greek to me, so shoot me a mail if I got it all wrong or if you have more examples (softplus [at] gmail.com). Thanks!