RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 7
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: Not yet rated. 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: The rating for this expression. 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: The rating for this expression. 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: The rating for this expression. 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 &quot;AleŇ° Potocnik and Andrew Lee &quot;. 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
&lt;a [a-zA-Z0-9 =&quot;'.:;?]*href=*[a-zA-Z0-9 =&quot;'.:;&gt;?]*[^&gt;]*&gt;([a-zA-Z0-9 =&quot;'.:;&gt;?]*[^&lt;]*&lt;)\s*/a\s*&gt;
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
&lt;a href=/language_tools?hl=en&gt;Language Tools&lt;/a&gt; | &lt;a href=&quot;http://www.google.co
Non-Matches
&lt;a name=&quot;Lucky&quot;&gt;Lucky&lt;/a&gt;
Author Rating: Not yet rated. himraj love
Title Test Details Pattern Title
Expression
&lt;a.*?href=(.*?)(?((?:\s.*?)&gt;.*?&lt;/a&gt;)(?:(?:\s.*?)&gt;(.*?)&lt;/a&gt;)|(?:&gt;(.*?)&lt;/a&gt;))
Description
this Expression use conditional expression to eveluate parameter after &quot;HREF&quot; and executes the yes/no part of the expression. this expression finds &lt;A&gt; TAG and returns value of &quot;HREF&quot; and the value hold in between &lt;a&gt;&lt;/a&gt; tags. the expression returns maximum 3 sub matches. the first match returns the &quot;HREF&quot; 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: &quot;/url?sa=p&amp;pref=ig&amp;pval=2&amp;q=http://www.google.co.in/ig%3Fhl%3Den&quot; 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
&lt;a href=&quot;/url?sa=p&amp;pref=ig&amp;pval=2&amp;q=http://www.google.co.in/ig%3Fhl%3Den&quot; o
Non-Matches
none
Author Rating: The rating for this expression. himraj love
   Displaying page 1 of 1 pages; Items 1 to 7

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials