Re: [PHP] A quick Regex query

2006-02-16 Thread Jim McIntyre
At 4:57 PM -0500 2/16/06, phplists wrote: Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extracting from is NOT at the begining

[PHP] A quick Regex query

2006-02-16 Thread phplists
Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extracting from is NOT at the begining of a line, so I can't use the ^ first. A