regex: im getting better

:B nerdy thoa0025 at mail.usyd.edu.au
Wed Oct 2 19:50:50 EDT 2002


$pattern = '|<input(\s+([^=>]*)="([^"]*)")*>|ism';

i'd like to match all the input tags's but also in a subexpression, i'd like
to match each of the parameters in the format
parameter_name="parameter_value"
where parameter_name and parameter_value are strings

my pattern doesnt work, it only matches the last parameter, whats wrong with
my pattern? and can someone show me how one would match my description
above?

cheers





More information about the Python-list mailing list