I need help with PO Box searches. Any combination of P.O. Box, PO BOX, P O Box, etc...
I tried some perl patterns I found on the internet and they don't work in Textpipe so maybe there's a better Easy Pattern method.
What I'm trying to do is look at an address field and if I see any mention of post office box as described above, I want to remove it.
PO Box Patterns
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: PO Box Patterns
Can you paste the examples you found? There might be an easy fix.
A simple EasyPattern would be:
A simple EasyPattern would be:
Code: Select all
[ ('P O' or 'PO' or 'P.O.' or 'P.O' ), ' Box' ]
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: PO Box Patterns
You're right David - normally you would not check the Match Case option, and just let TextPipe do its thing.
But in this case it is important to ignore false positives, so Match Case should be checked, and the EasyPattern changed to:
But in this case it is important to ignore false positives, so Match Case should be checked, and the EasyPattern changed to:
Code: Select all
[ ('P O' or 'PO' or 'P.O.' or 'P.O' ), 1+whitespace, ( 'Box' or 'BOX' ) ]