in reply to Re^3: Parsing HTML/XML with Regular Expressions (regex)
in thread Parsing HTML/XML with Regular Expressions
Interesting post, thank you! I tested it and except that I had to strip non-word characters out of the values, it mostly works - it doesn't pick up the id of the Sunday Saturday entry, and it also picks up the values "bbbdddeeeggg", but overall it's a very interesting start. Regexes are a fine tool for lexing, and by adding some logic around them keeping track of the nested tags etc., it's basically like building a simple parser.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Parsing HTML/XML with Regular Expressions (regex)
by RonW (Parson) on Oct 19, 2017 at 23:50 UTC | |
by haukex (Archbishop) on Oct 20, 2017 at 09:03 UTC | |
by RonW (Parson) on Oct 23, 2017 at 22:33 UTC | |
by RonW (Parson) on Oct 20, 2017 at 21:29 UTC | |
Re^5: Parsing HTML/XML with Regular Expressions (regex)
by RonW (Parson) on Oct 19, 2017 at 22:13 UTC |