I'm using the following RegEx to strip HTML tags from a string
<[^>]*>
This does not get rid of blank lines, however. I found this other RegEx that successfully removes any blank lines:
[#Chr(13)##Chr(10)#]+
I tried to combine both as such:
ReReplaceNoCase(arguments.string, "(<[^>]*>)([#Chr(13)##Chr(10)#]+)", "", "ALL")
But this does not work. I'm using ColdFusion to do this, which should explain the #
signs.
I thought the ()
were used to group operators in RegEx, but it does not seem to work in my attempt to combine the two expressions.