+ operator in awk FS string

I'm parsing a HTML file witk awk, and I want my field separator to be any sequence of <> tags, leaving fields as the text outside of the tags.

Currently I have
FS = "[ \t]*<[^>]*>[ \t]*"
which works well for one tag (and any surrounding whitespace), but gives lots of empty fields when several tags <b><i> etc are next to each other.

I'd like something like
FS = "[[ \t]*<[^>]*>[ \t]*]+"
but that doesn't work. I've tried a number of permutations with brackets, parentheses and plus signs.

What's the proper way of doing this?
LVL 1
loveslaveAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
([ \t]*<[^>]*>[ \t]*)+
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.