I am trying to filter out some garbage text from a regex string, but it can't seem to get it to work. I am not a regular expression expert (not even close), and I was looking for similar examples, but none of them seemed to solve my problem.
I need a regular expression that matches all values ββfrom the beginning of a line to a specific word in that line, but not the word itself.
here is an example:
<p>This is the string I want to process with as you can see also contains HTML tags like <i>this</i> and <strong>this</strong></p> <p>I want to remove everything in the string BEFORE the word "giraffe" (but not "giraffe" itself and keep everything after it.</p>
So, how can I combine everything in the line before the word "giraffe"?
Thanks!
source share