Welcome To Snipplr
Everyone's Recent Snippets Tagged regexp
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links
0
819
posted 15 years ago by kossmoss
Founds this via http://www.flashcomguru.com/index.cfm/2009/2/17/regexp-validate-url
1
990
posted 15 years ago by allnatural
https://www.chrisjmendez.com/2008/06/06/as3-regular-expression-basics/
12
1419
posted 16 years ago by chrisaiv
https://www.chrisjmendez.com/2008/02/11/as3-regular-expression-basic-example/
0
993
posted 16 years ago by chrisaiv
-l grep options shows the path and only the path of the matching file
0
834
posted 17 years ago by therobot
Converts whitespace that spans multiple lines into a single newline, needs improvement
0
887
posted 17 years ago by plexus
Matches any hex value (0123456789ABCDEF) preceded by the pound sign (#) of exactly 3 or 6 digits in length.
3
862
posted 18 years ago by Corhol
warning: snipplr tends to escape the quotes and slashes, causing this snippet to fail when pasted verbatim.
2
1095
posted 18 years ago by ndegruchy