in reply to Eugh, regex :(
your title could be a bit more descriptive, even more as you do not explain what you are aiming at. What are you trying to cut out of that HTML-code? Also - your error message says =~ m%..., but your code reads =~ s%... which - for me - spits out a different error message. However, to me it is not clear what you want to do.
Another point: Parsing HTML source code with regexes is error prone and I would strongly suggest one of the parsers like HTML::Parser and it's derivatives, but this here seems to be some pseudo-code for forums etc - I have no idea if there are modules to parse that...
Regards,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Eugh, regex :(
by moritz (Cardinal) on Mar 25, 2009 at 09:51 UTC | |
by ultranerds (Hermit) on Mar 25, 2009 at 09:55 UTC | |
by moritz (Cardinal) on Mar 25, 2009 at 10:08 UTC | |
Re^2: Eugh, regex :(
by parv (Parson) on Mar 25, 2009 at 09:48 UTC | |
Re^2: Eugh, regex :(
by ultranerds (Hermit) on Mar 25, 2009 at 09:52 UTC | |
by Utilitarian (Vicar) on Mar 25, 2009 at 10:09 UTC | |
by Marshall (Canon) on Mar 25, 2009 at 15:17 UTC |