This pattern: <select name=\"fromlist\".*?</select> will probably work if modified as follows: if ( m%<select name=\"fromlist\"[^<]*</select>%s ) { ... } Please note three things: - use of ``%'' (or any other character that is not used inside the expression) instead of ``/'' to bound the expression (or, bound with ``/'' but then escape the slash that is part of the expression: <\/select> - use of ``[^<]*'' instead of ``.*?'' -- maybe not an essential thing, but good form - use of the "s" modifier after the closing % -- this is what Ricky Morse was trying to remember. Actually since we're not using ".*" anymore, this may not be necessary Good luck. (I hope I'm at least close to being right.) Dave Graff # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org