in reply to Using multiple regex's

I don't see the harm here. $value2's regex is done later than that of value1. So the latest $1,$2 are from $value2. If value1's regex doesn't return true, nothing is assigned. Same for value2's regex. Seems OK to me.

Jeroen
"We are not alone"(FZ)