yes, it is Windows, and yes, swapping quotes around (double for the -e 
command part, and single for the string to be matched) produced the 
expected result (as per kachick)

further, irb gives the expected results regardless of using single or 
double quotes around the string to be matched against (ABCD1234)

thanks for your help

-- 
Posted via http://www.ruby-forum.com/.