so I wonder why you are surprised it only 'works' if there are no spaces in the value. If you want spaces, don't forbid them.[^'" >]+
Having said that, there are many more problems with your regexp. Why don't you use one of the many XML parsing modules from CPAN?
Abigail
In reply to Re: Regex and a pseudo-XML tag
by Abigail-II
in thread Regex and a pseudo-XML tag
by inblosam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |