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 BFPO - British Forces Post Office
Expression
^(b|B)(f|F)(p|P)(o|O)(\s*||\s*C(/|)O\s*)[0-9]{1,4}
Description
Matches BFPO Allows for BFPO with no spacing
Matches
BFPO 2, BFPO 2222, BFPO C/O 121, BFPO2222
Non-Matches
bf po 1212, BFPO 22222
Author Rating: Not yet rated. Dean Simpson
Title Test Details BFPO - British Forces Post Office - STRICT
Expression
^(b|B)(f|F)(p|P)(o|O)(\s|\sC/O\s)[0-9]{1,4}
Description
Matches all coorrectly spaced BFPO's
Matches
BFPO 2222, BFPO C/O 121
Non-Matches
BFPO 22222 ,bf po 1212,bfpo co 121,BFPO222
Author Rating: Not yet rated. Dean Simpson
   Displaying page 1 of 1 pages; Items 1 to 2

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