Using this test page

http://spaweditor.com/scripts/regex/index.php

with this regex
/\b[r|rural]+ {0,2}[d|delivery]+ {0,3}\d{1,3}/i

Using this sample data set:
"
2 West coast, Rural delivery 1
20 West Coast Road, RD2
222 Hard Road, RD 3, Tiparere
3 hard 11 hard
33 ford road rural Delivery 3
1 fords road rd  1
unit 3 level 2, long apartments, auckland
5 foo rd
6 left road rUrAl DeLiVeRy 2
unit 4, level 6, rd125, motherwell
5 word rd r d 88
"
with ha'rd' and fo'rd' and 'rd' included.

1. Why do i get a match on 'level 2' and 'level 6'?

2. How do i fix it?

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to