Html stripping regex
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I'm trying to write a regular expression which seems easy enough but is elusive. I need to strip some info from a html table. The pattern is simple : 1,2 * [b] tag followed by { anything } followed by optional [em] followed by { anything } followed by 1 or more [span] This is what I've got so far :
(?:
[b]
(?.*?)
[/b]
)+
(?:.|\s)*?
(?:
[em](?.*?)[/em]
)Which seems to work fine until I make the '[em]' group 'zero or more' * . That part is then just ignored. :sigh: