> Nope, you've not captured anything. '\b' marks a word boundary, but the > regex will not match the string you want. Try: > > if($tmp =~ /cs:(.*?) st:/) { > > The capture '()' will do a non-greedy match '.*?', although in most cases > you can just do a greedy match '.*'. > Ah hah. Thank you :) David. -- http://codepoets.co.uk/david