I am a novice. I'm trying to find the full name in any of the lines below and there is no Obituary for
<h2>Obituary for John Doe</h2> <h1>James Michael Lee</h1>
My regular expression is like this.
(<h1>(.+?)<\/h1>|<h2>Obituary\sfor\s(.+?)<\/h2>)
What I got was still John Doe's obituary. How do I delete the
obituary for
?
Can you do something like this without using regular expressions?
All roads lead to Rome, you may do this: