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 2
Title Test Details Pattern Title
Expression
^([0-9]{2})?(\([0-9]{2})\)([0-9]{3}|[0-9]{4})-[0-9]{4}$
Description
A simple expression to brazilian phone number code, with international code. Simple DDI without "+" 99 plus simple DDD (99) plus simple local phone number 3 or 4 digits plus "-" plus 4 digits.
Matches
55(21)123-4567 | (11)1234-5678 | 55(71)4562-2234
Non-Matches
3434-3432 | 4(23)232-3232 | 55(2)232-232
Author Rating: The rating for this expression. Rafael Miranda
Title Test Details Pattern Title
Expression
^\d{2}(\x2e)(\d{3})(-\d{3})?$
Description
Other expression to standard 5 digit Brazilian Postal Codes (CEP), or the CEP + 3 digits (distribution identifiers - suffix). The diference of the original one, is that the "." is mandatory.
Matches
12.345-678 | 23.345-123 | 99.999
Non-Matches
41222-222 | 3.444-233 | 43.324444
Author Rating: Not yet rated. Rafael Miranda
   Displaying page 1 of 1 pages; Items 1 to 2

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