I'm not quite sure where to post this question so I'm trying here because it's always been a great resource.
I'm starting to get into Regular Expressions programming in Access. I've built a regular expression that searches for variations of PO BOX and RR but it only ever finds the first one in a string. ie. if some one has PO BOX 123 on RR 1 then it would just find the first PO BOX and the preceding RR.
I would like it to be able to find all instances of the expression.
Here's my expression:
Thank you in advance.
I'm starting to get into Regular Expressions programming in Access. I've built a regular expression that searches for variations of PO BOX and RR but it only ever finds the first one in a string. ie. if some one has PO BOX 123 on RR 1 then it would just find the first PO BOX and the preceding RR.
I would like it to be able to find all instances of the expression.
Here's my expression:
Code:
((p[\s|\.|, ]*|post[\s|\.]*)(o[\s|\.|, ]*|office[\s|\. ]*)([box[\s|\. ]*))|(RR[\s|\.|, ]*|R.R[\s|\.]*)[/$&#'-]*
Thank you in advance.