I know almost nothing of Regular Expressions other than that they exist. However, I know that it's probably the answer to my co-worker's problem.
We need to strip some HTML out of some data. The biggest problem we have is the <p> tags. But they include some other attributes. For example:
Our end goal is
We've so far gotten a regex to remove the closing </p>, and to get rid of an empty open <p>, but if it has any attributes included, the regex won't mach it.
Can anyone suggest a regex that will match "<p" + any number of characters/symbols + ">" for me? I'd appreciate it.
We need to strip some HTML out of some data. The biggest problem we have is the <p> tags. But they include some other attributes. For example:
Code:
<p class="asdf1234">Some Text</p> <p class="qwer567890">Some Other Text</p>
Code:
Some Text Some Other Text
Can anyone suggest a regex that will match "<p" + any number of characters/symbols + ">" for me? I'd appreciate it.
Comment