Introduction
Guys , we all know that regular expressions are very useful for checking any kind of patterns.
Background
So we have to know how to write regular expressions for our patterns. But don't worry here i will provide some but very useful regular expressions which will be useful for our coding.
Using the code
just copy and paste Regular Expression from here to your code.
"regex"><TAG\b[^>]*>(.*?)</TAG>
"regex"><([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>
"regex">^[ \t]+|[ \t]+$
"regex">\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\."regex">(25[0-5]|2[0-4][0-9]|[01]?[0-9]
"regex">[0-9]?)\."regex">(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\."regex">
"regex">(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"regex">"regex">"regex">
"regex">[-+]?[0-9]*\.?[0-9]+
"regex">[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?"regex">
"regex">^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$
"regex">"regex">"regex">"regex">"regex">"regex">
"regex">"regex">"regex">"regex">"regex">"regex">^[A-Z0-9._%-]+@[A-Z0-9.-]+\.(?:[A-Z]{2}|com|org|net|biz|info|name|aero|biz|info|jobs|museum|name)$
"regex">"regex">"regex">"regex">"regex">"regex">
"regex">(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])
"regex">
"regex">(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d"regex"> "regex">
"regex">(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d
"regex">^.*\b(one|two|three)\b.*$
"regex">^(.*)(\r?\n\1)+$
^[0-9]
^[a-z]
"regex">
"regex">
^[4]([0-9]{15}$|[0-9]{12}$)
^[5][1-5][0-9]{14}$
^6011-?\\d{4}-?\\d{4}-?\\d{4}$
(^30[0-5][0-9]{11}$)|(^(36|38)[0-9]{12}$)
^[34|37][0-9]{14}$
"regex">
^(2014|2149)[0-9]{11}$
^3[0-9]{15}$)|(^(2131|1800)[0-9]{11}$)
Points of Interest
I like to Share my knowledge with you, because i am also one of you, taht if i don't know anything then i come to you...so keep excahnge of knowledge...
History