Displaying page
of
pages;
Items to
| Title |
Test
Details
version number validation
|
| Expression |
^((\d)?(\d{1})(\.{1})(\d)?(\d{1})){1}$ |
| Description |
This simple regular expression comes handy when we need to validate a version number of a document. The version numbers can have decimals upto two decimal places |
| Matches |
2.22,99.99 |
| Non-Matches |
999.99,9.999,ab.cd |
| Author |
Rating:
Not yet rated.
venugopal
|
| Title |
Test
Details
email regular expressions
|
| Expression |
^[A-Za-z0-9](\.[\w\-]|[\w\-][\w\-])(\.[\w\-]|[\w\-]?[\w\-]){0,30}[\w\-]?@[A-Za-z0-9\-]{3,63}\.[a-zA-Z]{2,6}$ |
| Description |
All emails listed below are to be created and You can try all of them on the domain name listed! |
| Matches |
a12.__.--@live.com | info@1234.com |
| Non-Matches |
1test@gmail.com | test.@yahoo.com | test@test_test.com |
| Author |
Rating:
mehdi ghasemi
|
| Title |
Test
Details
powerfull username
|
| Expression |
[A-Za-z](\.[A-Za-z0-9]|\-[A-Za-z0-9]|_[A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9])(\.[A-Za-z0-9]|\-[A-Za-z0-9]|_[A-Za-z0-9]|[A-Za-z0-9])* |
| Description |
this expression is one of the best username regular expressions |
| Matches |
a.f | joe | mehdi2_ghasemi | mr-green123 |
| Non-Matches |
a._f | 1mehdi | ab | mehdi..ghasemi | mehdi_ |
| Author |
Rating:
mehdi ghasemi
|
| Title |
Test
Details
Pattern Title
|
| Expression |
<!--.*?--> |
| Description |
|
| Matches |
<!-- <h1>this text has been removed</h1> --> | <!-- yada --> |
| Non-Matches |
<h1>this text has not been removed</h1> |
| Author |
Rating:
Tony Austin
|
| Title |
Test
Details
private ip range check
|
| Expression |
^(1(0|7|9)2?)\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$ |
| Description |
validates private ip addresses
needs to be a bit more refined |
| Matches |
10.10.10.10 |192.168.16.4|172.016.22.55 |
| Non-Matches |
a.c.s.s| 100.10.10.10| 188.142.25.2| 651817 |
| Author |
Rating:
Not yet rated.
blank
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(NOT)?(\s*\(*)\s*(\w+)\s*(=|<>|<|>|LIKE|IN)\s*(\(([^\)]*)\)|'([^']*)'|(-?\d*\.?\d+))(\s*\)*\s*)(AND|OR)? |
| Description |
Heres my sql clause parser regexp for recordset filtering. Does recursive query parsing all by its self. Only problem I cant figure is how to match comma separated lists of quoted strings. Tell me if you figure out how!
The unicodes in the re was put in by the entry form please replace them with their ascii equivalents to use it. |
| Matches |
Aeroplane LIKE 767 | Movie LIKE 'Star' AND NOT Movie LIKE 'Trek' | Number IN (1,2,3,4,5) |
| Non-Matches |
Hello there | A=EXCELLENT OR | B!=POOR |
| Author |
Rating:
Joseph Warwick
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(^[1]$)|(^[1]+\d*\.+\d*[1-5]$) |
| Description |
Simple expression that accepts only values between 1 and 1.5 |
| Matches |
1 | 1.4 | 1.5 |
| Non-Matches |
2 | 1.ZZ | 1.6 |
| Author |
Rating:
Not yet rated.
Rony Crijns
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(#){1}([a-fA-F0-9]){6}$ |
| Description |
Matches HTML Color strings. Like #FFFFFF is white and #000000 is black and #FF0000 is red and so on... |
| Matches |
#FFFFFF | #FF3421 | #00FF00 |
| Non-Matches |
232323 | f#fddee | #fd2 |
| Author |
Rating:
Mladen Mihajlovic
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(?<zip5>^\d{5})([\- ]?(?<plus4>\d{4})?$) |
| Description |
Zip Code (Zip or Zip-Plus4 format). Accepts a hyphen, a space, or nothing between Zip and Plus4 segments. Named segments <zip> and <plus4> may be used to reformat users input to desired format using Regex replace function (re.replace). |
| Matches |
92078 | 92078-4705 | 92078-4705 |
| Non-Matches |
9207 | 92078470 | 92078*4705 |
| Author |
Rating:
Not yet rated.
MARK J KRISBURG
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\d{5}((-|\s)?\d{4})?$ |
| Description |
Single field zip code validator, useful for Web Forms. Allows user to enter 5-digit or 5-digit plus 4 zip code, with hyphen or space or NO space between last 4 digits. |
| Matches |
92078-4705 | 920784705 | 92078 4705 |
| Non-Matches |
9027x | 902 | 92078.4705 |
| Author |
Rating:
MARK J KRISBURG
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\d{5}((\-|\s)?\d{4})?$ |
| Description |
Single field zip code validator useful for web forms, where user may enter 5 digit or 9 digit zip code, and may use hyphen, space, or no space between the first 5 digits and last 4 digits. |
| Matches |
92078 | 92078-4705 | 92078 4705 |
| Non-Matches |
920781 | 920a87 | 920 |
| Author |
Rating:
MARK J KRISBURG
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(\([2-9]|[2-9])(\d{2}|\d{2}\))(-|.|\s)?\d{3}(-|.|\s)?\d{4}$ |
| Description |
Telephone validator allowing user to enter 10 digit telephone number with segments of number separated by hyphens, periods or spaces. Also braces allowed around area code. |
| Matches |
213-123-1234 | 2131231234 | (213) 123-1234 |
| Non-Matches |
123-123-1234 |
| Author |
Rating:
MARK J KRISBURG
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\(?(?<AreaCode>[2-9]\d{2})(\)?)(-|.|\s)?(?<Prefix>[1-9]\d{2})(-|.|\s)?(?<Suffix>\d{4})$ |
| Description |
US telephone number with area code. Validates and also captures AreaCode, Prefix and Suffix for reformatting. |
| Matches |
(213) 343-1234 | 213-343-1234 | 213 343 1234 |
| Non-Matches |
343-1234 |
| Author |
Rating:
MARK J KRISBURG
|
| Title |
Test
Details
Clipser Video ID from URL
|
| Expression |
'/http:\\/\/(?:www.)?clipser\.com\/watch_video\/([0-9a-z-_]+)/i' |
| Description |
This will extract the Video Id From Video URL which the number sequence and will check url.. make sure its a valid link - expression is in PHP format |
| Matches |
http://www.clipser.com/watch_video/1360823 | http://clipser.com/watch_video/1360823 |
| Non-Matches |
http://www.clipser.com/videocategories.php?mtab=Categories |
| Author |
Rating:
Not yet rated.
Rick Estrada
|
| Title |
Test
Details
Blip Video ID from URL
|
| Expression |
'/http:\/\/(?:www\.)?blip\.tv\/file\/(\d+).*/' |
| Description |
extract video id from blip.tv url - expression is in PHP format |
| Matches |
http://www.blip.tv/file/2462235 | http://blip.tv/file/2462235 |
| Non-Matches |
http://blip.tv/playlist/2462235 |
| Author |
Rating:
Not yet rated.
Rick Estrada
|
| Title |
Test
Details
Detect onClick Javascript in href tags
|
| Expression |
'/\\(?<\w+[^>]*\son\w+=.*[ \/].?>(?:\))?/i' |
| Description |
Needed this to Detect onClick javascript in href tags and strip put with PHP scraping html source |
| Matches |
<a href=\"#\" onclick=\"hideDesc('hidedescr1360823'); hideDesc('lessdescr1360823'); showDesc('descr11360823'); showDesc('moredescr1360823'); return false;\"><span class=\"grouptxt\">less</span></a> | (<img href=\"#\" onclick=\"showDesc('hidedescrtag1360823'); hideDesc('moredescrtag1360823'); hideDesc('descr1tag1360823'); showDesc('lessdescrtag1360823'); return false;\"><span class=\"grouptxt\">more</span></a>) |
| Non-Matches |
<a href="#" ><span class="grouptxt">less</span></a> |
| Author |
Rating:
Not yet rated.
Rick Estrada
|
| Title |
Test
Details
Google Video ID from URL
|
| Expression |
'/http:\\/\/\.?video.google.\w{2,3}\/videoplay\?docid=([a-z0-9-_]+)/i' |
| Description |
This will extract the Video Id From Google Video URL which the number sequence after docid= and will check url.. make sure its a valid google link |
| Matches |
http://video.google.com/videoplay?docid=24495753fgf30029419184# | http://video.google.ca/videoplay?docid=-6555753fgf3002941918 | http://video.google.ru/videoplay?docid=278677853fgf30029419184 |
| Non-Matches |
http://video.google.com/?docid=24495753fgf30029419184|http://google.com/videoplay?docid=24495753fgf300294191 |
| Author |
Rating:
Not yet rated.
Rick Estrada
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\(?[\d]{3}\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$ |
| Description |
This regular expression matches 10 digit US Phone numbers in different formats. Some examples are
1)area code in paranthesis.
2)space between different parts of the phone number.
3)no space between different parts of the number.
4)dashes between parts.
|
| Matches |
(573)8841878 | 573-884-1234 | 573 234 1256 |
| Non-Matches |
(573)(673)2345 | 573-12-2345 |
| Author |
Rating:
kode kode
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(((25[0-5]|2[0-4][0-9]|19[0-1]|19[3-9]|18[0-9]|17[0-1]|17[3-9]|1[3-6][0-9]|12[8-9]|12[0-6]|1[0-1][0-9]|1[1-9]|[2-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]))|(192\.(25[0-5]|2[0-4][0-9]|16[0-7]|169|1[0-5][0-9]|1[7-9][0-9]|[1-9][0-9]|[0-9]))|(172\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|1[0-5]|3[2-9]|[4-9][0-9]|[0-9])))\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$ |
| Description |
Updated to exclude 127/8 |
| Matches |
66.129.71.120 | 207.46.230.218 | 64.58.76.225 |
| Non-Matches |
127.0.0.1 | 192.168.0.1 | my ip address |
| Author |
Rating:
Todd Krabach
|
| Title |
Test
Details
Indian Phone number
|
| Expression |
/((\d){2})?(\s|-)?((\d){2,4})?(\s|-){1}((\d){8})$/ |
| Description |
This expression is not working for this +91-020-41056767. If i enter +91555-020555-41056767 still its working. Please help me. Send me the correct expression on my email id cgadgilwar@gmail.com |
| Matches |
+91-020-41056767 |
| Non-Matches |
+9144-02440-41056767 |
| Author |
Rating:
Not yet rated.
chetan
|
Displaying page
of
pages;
Items to