in reply to pattern to match certain numbers only?
if ( /text x="(([0-9]+)\.([0-9]))"/ && $1 % 10 == 0 ) { #... } [download]