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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 5 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 5
Title Test Details Pattern Title
Expression
^p(ost)?[ |\.]*o(ffice)?[ |\.]*(box)?[ 0-9]*[^[a-z ]]*
Description
This expression is useful for determining if an address is a PO Box type address. This can be useful in shipping systems as well as other systems that need to make determinations based on the type of address imputed.
Matches
po box 4353
Non-Matches
pollo St. | P. O. Box d3f12s | BOX 23
Author Rating: Not yet rated. Darryl Kuhn
Title Test Details Pattern Title
Expression
(^(p[\s|\.|,]*| ^post[\s|\.]*)(o[\s|\.|,]*| office[\s|\.]*))| (^box[.|\s]*\d+)
Description
This expression filters all variations of Post Office Box or PO Box.
Matches
PO Box | p.o. box | box 123
Non-Matches
123 Some Street
Author Rating: Not yet rated. Joseph Lamb
Title Test Details PO Box
Expression
\b[P|p]*(OST|ost)*\.*\s*[O|o|0]*(ffice|FFICE)*\.*\s*[B|b][O|o|0][X|x]\b
Description
This expression will match almost all variations of PO Box.
Matches
P.O. Box, Po Box, Post Office Box, Box, P0 Box
Non-Matches
Controller's Office
Author Rating: The rating for this expression. Chris Myers
Title Test Details PO Box
Expression
\b[P|p]?(OST|ost)?\.?\s*[O|o|0]?(ffice|FFICE)?\.?\s*[B|b][O|o|0]?[X|x]?\.?\s+[#]?(\d+)\b
Description
Modified version of Chris Myers' regexp for po boxes. This one won't match the word "box" in the address. Only matches if there is a number following the po box. Also accepts a # in front of the number and other spelling variations.
Matches
po box 123, p.o.b. #123, box 123
Non-Matches
123 box canyon rd
Author Rating: The rating for this expression. greg croasdill
Title Test Details Ultimate PO BOX finder
Expression
[p|P][\s]*[o|O][\s]*[b|B][\s]*[o|O][\s]*[x|X][\s]*[a-zA-Z0-9]*|\b[P|p]+(OST|ost|o|O)?\.?\s*[O|o|0]+(ffice|FFICE)?\.?\s*[B|b][O|o|0]?[X|x]+\.?\s+[#]?(\d+)*(\D+)*\b
Description
Modified version- to capture the PO BOX based on user input on the website - It will not include any Rural Route or any University Box
Matches
PO Box N,P O Box125,HC73 P.O. Box 217,P.O Box 0129,pobox123, P O Box124
Non-Matches
777 Post Oak Blvd,PSC 477 Box 396,RR 1 Box 1020
Author Rating: The rating for this expression. Senjaya Harianto
   Displaying page 1 of 1 pages; Items 1 to 5

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