/(\d){2}\/(\d){2}/
this will capture mm into $1 and yy into $2;
note the baclslash in front of the forward slash. this escapes any
specials charcters. allowing u to use them literally.
alternatively
m!(\d){2}/(\d){2}!
u can use different delimiters wich make / literal.
Sent via Deja.com http://www.deja.com/
Before you buy.
er... how about: m#[1-12]/[0-99]$# ? (or use m( .... ) or m" ...
" )
allthough I am not too sure about the 1-12 stuff.
the m operator lets you choose your own boundary character.
alternatively: use /^[1-12]\/[0-99]$/ (so use the \ to escape the / )
regards,
Joris Hilhorst
In article <8t3n6b$pbg$1...@nnrp1.deja.com>,