On Thu, 4 Dec 2008, Ray Jette wrote:

The following looks like it will work. Does any one see any reasons why this would not work?
/\bPO ?s?:?#?\d{0,10}?[a-z]{0,5}?/i

The order of your optional bits will be respected, and there's not a "v" or apostrophe in there, which was in one of your actual samples, and a PO number with dashes won't match.

Try the one I provided. It should work on alphanumeric POs as long as they don't _start_ with letters.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]    FALaholic #11174     pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  North Korea: the only country in the world where people would risk
  execution to flee to communist China.                  -- Ride Fast
-----------------------------------------------------------------------
 11 days until Bill of Rights day

Reply via email to