Regexp help
Let’s say I have a regexp that searches through some content and returns everything between bold tags (<b></b>). For example: ‘/<b>(.*?)</b>/’
Now, let’s say that I want to add more than the bold tags – like the <h1> tags.
Can I incorporate that into the first regexp? Or, do I have to do separate regexps?
I thought of just adding in the new requirement like ‘/(<b>(.*?)</b>,<h1>(.*?)</h1>)/’ – but received more errors then I like to talk about.
There has to be a simple way to combine these or add several together without having to do separate regexp for each.
Most manuals and tutorials simply show what can be matched but not really how to combine them.
