You need to use the regex backslash literal expression in front of the brackets because brackets are used in expressions. Then use a | symbol between to grab either bracket.
The pre code in my first forum post above don’t show the string.
The string contains multiple occurrences of
table (blank space) table – as an empty table, with the html brackets around it which I can NOT reproduce here
– basically an empty table.
I want to remove ONLY all the empty tables – replace is the only way to do it b/c the string is of different lengths each time it’s generated, hence using a replace. Other tables are in the string and they contain data (rows, columns).
I think this is what you’re after. Hoping I’ve remembered correctly that a Gist link won’t remove the angle brackets.
\s* will match 0 or more occurrences of whitespace. Unfortunately, I can’t get it working across multiple lines with -replace although the regex code to match it should just be \s*[\r\n]* (verified working on https://regex101.com/).