Need a RegEx to find word "CEO"
and take next number group.
Example code:
<td>
<p>John Doe</p>
<p>CEO</p>
<p>tel. <a href="tel:152 444 9595">152 444 9595</a></p>
<p>john.doe@somethingdoejohn.com</p>
Need a RegEx to find word "CEO"
and take next number group.
Example code:
<td>
<p>John Doe</p>
<p>CEO</p>
<p>tel. <a href="tel:152 444 9595">152 444 9595</a></p>
<p>john.doe@somethingdoejohn.com</p>
An easy example how to fetch the part "tel:152 444 9595"
CEO.*href="(tel:[0-9\s]*)">
Use tools like regexr.com (do not use data you do not want to share with others) if you want to play around with the regular expression. Also remove the new lines from the string to make it easier for matching.
.* arbitrary sequence
[0-9\s]* match numbers and whitespaces
() use only this part in the result (depends on type of regex matching)
the rest is used literally at their positions