Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?:<strong\b[^>]*>(?<name>.*?)<\/strong>|"myspecialaction\?.*?list=(?<id>[^&"]+))
/
gi
Input 1
New
table> <tr> <td><strong>Name 1</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?list=10000">Edit</a></td> </tr> <tr> <td><strong>Name 2</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?field=&list=10001">Edit</a></td> </tr> <tr> <td><strong>Name 2</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?field=&list=10002&something=whatever">Edit</a></td> </tr> </table>
Extraction
table> <tr> <td><strong>Name 1</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?list=10000">Edit</a></td> </tr> <tr> <td><strong>Name 2</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?field=&list=10001">Edit</a></td> </tr> <tr> <td><strong>Name 2</strong></td> <td>Info and ignore <a href="/gohere"/>this</a></td> <td><a href="MySpecialAction?field=&list=10002&something=whatever">Edit</a></td> </tr> </table>