Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Z|a-z]{2}-\d{2}-[A-Z|a-z]{2}-\d{1,4})?([A-Z|a-z]{3}-\d{1,4})?$
|
Description |
It validates Indian Vehicle Registration Number
|
Matches |
mh-12-bj-1780 | mmx-1234
|
Non-Matches |
mmm-123-1234 | mm-12345
|
Author |
Rating:
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Z|a-z]{2}\s{1}\d{2}\s{1}[A-Z|a-z]{1,2}\s{1}\d{1,4})?([A-Z|a-z]{3}\s{1}\d{1,4})?$
|
Description |
It validates Indian Vehicle Registration Number
|
Matches |
mh 12 bj 1780 | mmx 1234
|
Non-Matches |
mmm 123 1234 | mm 12 bj 345 | mm 12345
|
Author |
Rating:
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
^[0-9]*(\.)?[0-9]+$
|
Description |
it will check for the +ve decimal numbers
|
Matches |
1 | 123 | 132.132
|
Non-Matches |
1.2.2 | -123
|
Author |
Rating:
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
^[a-zA-Z0-9]+$
|
Description |
it will check for alphanumeric (Alpha Numeric) values.
|
Matches |
adad1213 | 1231dfadfa | dfad123dfasdfs
|
Non-Matches |
dfa@#12313 | *(*sdfasdfadfd | $fffsdg121ddd#$f1q
|
Author |
Rating:
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
<a[a-zA-Z0-9 ="'.:;?]*(href=[\"\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\"\'])*(>[a-zA-Z0-9 ="'<>.:;?]*</a>)
|
Description |
i've merged two regular expression those i found on this site. thanks to the owners "Aleš Potocnik and
Andrew Lee ". i used their expression to make mine. this expression finds the URL/Hyperlink with the HTML tags.
|
Matches |
<a href="http://www.google.co.in/hi">Hindi</a>
|
Non-Matches |
href="http://www.google.co.in/hi"
|
Author |
Rating:
Not yet rated.
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
<a [a-zA-Z0-9 ="'.:;?]*href=*[a-zA-Z0-9 ="'.:;>?]*[^>]*>([a-zA-Z0-9 ="'.:;>?]*[^<]*<)\s*/a\s*>
|
Description |
you can find all the hyperlinks with their caption and attributes. in other words you can find anchors with their attributes and label or value.
|
Matches |
<a href=/language_tools?hl=en>Language Tools</a> | <a href="http://www.google.co
|
Non-Matches |
<a name="Lucky">Lucky</a>
|
Author |
Rating:
Not yet rated.
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
<a.*?href=(.*?)(?((?:\s.*?)>.*?</a>)(?:(?:\s.*?)>(.*?)</a>)|(?:>(.*?)</a>))
|
Description |
this Expression use conditional expression to eveluate parameter after "HREF" and executes the yes/no part of the expression. this expression finds <A> TAG and returns value of "HREF" and the value hold in between <a></a> tags. the expression returns maximum 3 sub matches. the first match returns the "HREF" tag value and rest of two holds the value of the tag alternativly. so after executing the expression you need to itarate through all the submatches and need to find out non NULL tags to get value.
the output of the above matching expamples would be like this :
1: "/url?sa=p&pref=ig&pval=2&q=http://www.google.co.in/ig%3Fhl%3Den"
2:[Personalized Home]
3:[] or NULL
the output of the second matching example would be like this.
1:/advanced_search?hl=en
2:[] or NULL
3:[Advanced Search]
|
Matches |
<a href="/url?sa=p&pref=ig&pval=2&q=http://www.google.co.in/ig%3Fhl%3Den" o
|
Non-Matches |
none
|
Author |
Rating:
himraj love
|
Displaying page
of
pages;
Items to