Utility Arena

  • Home (current)
  • PDF Tools
  • Blogs
  • About Us
  • Contact Us
  • Sign In
  • Privacy Policy





  • Quantfiers
  • Groups and Ranges
  • Assertions
  • Anchors
  • Community Regex's
  • Character Class
* : 0 or more.
+ : 1 or more.
? : 0 or 1.
{3} : Exactly 3.
{3,} : 3 or more.
{3,4,5} : 3 or 4 or 5.
^ : Start of string, or start of line in multi-line pattern.
\A : Start of string.
$ : End of string, or end of line in multiline pattern.
\Z : End of string.
\b : Word boundary.
\B : Not Word boundary.
\< : Start Of Word.
\> : End Of Word.
. : Any character except new line(\n).
(a|b) : a or b.
(...) : Group.
(?...) : Passive non-capturing Group.
[abc] : Range a or b or c.
[^abc] : Not (a or b or c).
[a-z] : Lower case letter from a to z.
[A-Z] : Upper case letter from A to Z.
[0-7] : Digits from 0 to 7.
\x : Group / sub-pattern number "x".
\c : Control character.
\s : White space.
\S : Not white space.
\d : Digit.
\D : Not digit.
\w : Word.
\W : Not Word.
\x : Hexade­cimal digit.
\O : Octal digit.
?= : Lookahead Assertion.
?! : Negative Look-ahead.
?<= : Look-behind assertion.
?!= or ?<! : Negative look-behind.
?> : Once only sub-expression.
?() : Condition [if then].
?()| : Condition[if then else].
Email RFC2822 :
Try Me!
[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])?
Whole Numbers :
Try Me!
(\d)+
Decimal Numbers :
Try Me!
((?![+-])(\d)*(\.)(\d)+)
Whole Decimal Numbers :
Try Me!
(?<=[ \n])((?![+-])(\d)+(\.)(\d)+)(?=[ \n]|$)
Neg., Pos. Whole decimal Numbers :
Try Me!
(?<=[ \n])((?<![+-])(\d)*(.)(\d)+)(?=[ \n])
Alphanumeric :
Try Me!
^[a-zA-Z0-9]*$
Password Strength : 1 lowercase, 1 uppercase , 1 number, at least 8 char
Try Me!
(?=(.*[0-9]))((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.{8,}$
URL : https Protocol
Try Me!
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
IPV4 Address :
Try Me!
(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([1-9][0-9])|([0-9]))
Date Format : YYYY-MM-DD
Try Me!
([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))
Date Format : dd-MM-YYYY Separators(. / -)
Try Me!
^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
Search Duplicates In a String
Try Me!
(\b\w+\b)(?=.*\b\1\b)


Copyright © 2020 UTILITY ARENA : UA