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

Please support RegExLib Sponsors

Sponsors

Expressions by User

Change page:   |    Displaying page 2 of 2 pages; Items 21 to 26
Title Test Details Valid Base64 string
Expression
(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?){1}
Description
The expression evaluates a Base64 string as a sequence of 4-byte blocks with a possible tail of 2 or 3-byte block with valid padding.
Matches
AAAAAA==
Non-Matches
AAAAAA
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details HTML encoded characters as dec or hex values
Expression
&#([0-9]{1,5}|x[0-9a-fA-F]{1,4});
Description
Find all html encoded characters as dec &#[0-9]{1,5}; or hex &#x[0-9a-fA-F]{1,4}; values. Remember to remove "amp;" which is used for making this post possible.
Matches
  |  
Non-Matches
 
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details US and Canada Phone numbers (all variations)
Expression
((\+?1)(\ \.-)?)?\([2-9][0-9]{2}|\([2-9][0-9]{2}\))(\ \.-)?[0-9]{3}(\ \.-)?[0-9]{4}
Description
US and Canada phones in any usual variation (area code in parenthesis, spaces or dots) including the international notation +1
Matches
+1 212 555 6666 | (212) 555 6666 | 212-555-666 | 212 5556666
Non-Matches
212 555 666
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details Month names (english)
Expression
(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|(Nov|Dec)(ember)?)
Description
The expression matches any month name (english) in short or full style. Use it with case insensitive mode in your date matching expressions.
Matches
Jan | April
Non-Matches
Febr
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details Weekday names (english)
Expression
(Mo(n(day)?)?|Tu(e(sday)?)?|We(d(nesday)?)?|Th(u(rsday)?)?|Fr(i(day)?)?|Sa(t(urday)?)?|Su(n(day)?)?)
Description
The expression matches any weekday name (english) in short (2 or 3 characters) or full style. Use it with case insensitive mode in your date matching expressions.
Matches
Mo | Sun
Non-Matches
Any
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details US (5 or 9 digits) Zip Codes with grouping
Expression
(?<group5>[0-9]{5})-?(?<group4>[0-9]{4})?
Description
Match 5-digit or 9-digit US zip codes with grouped results. Remember to replace < with open tag char and > with close tag char
Matches
12345 | 12345-6789 | 123456789
Non-Matches
12345 6789
Author Rating: Not yet rated. Vassilis Petroulias
Change page:   |    Displaying page 2 of 2 pages; Items 21 to 26

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