May need an /s modifier on those regexp.while (1) { /\G<([^>]+)>/gc and do { start_tag($1); next; } /\G</([^>]+)>/gc and do { end_tag($1); next; } /\G([^<]*)/gc and do { body($1); next; } last; }
In reply to Re: Parsing XML...by hand (ugh)
by markhh
in thread Parsing XML...by hand (ugh)
by raindog308
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |