in reply to Re: extracting link *and* tag content from "a href"
in thread extracting link *and* tag content from "a href"
(The second two are credited two perlygatekeeper in #perl on Freenode)<a href='this>breaks>"'>maybe</a> <a href=#>test</a> <a href="/path/to/don't/use/this">omg</a>
I'm sure you could manage to fix these specific cases, but I seriously doubt you'll ever actually get to the point where it parses every type of valid html. And even if you do, whats the point? You just wasted X hours to do something that existing modules already do extremely well. This makes a decent learning exercise but please to not suggest "home grown" regexen for such complicated tasks.URL: this>breaks Name: "'>maybe URL: #> Name: URL: "/ Name:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: extracting link *and* tag content from "a href"
by bageler (Hermit) on Jul 19, 2004 at 20:33 UTC | |
by BUU (Prior) on Jul 19, 2004 at 20:41 UTC | |
by iburrell (Chaplain) on Jul 20, 2004 at 16:49 UTC |