in reply to Re: Pattern Matching and replacement
in thread Pattern Matching and replacement
You could also look at HTML::FillInForm which will do a similar task as what tachyon mentions above. And please take everyone's advice and don't use a regex for this...