PHP Regex tester

Pattern:

PHP Pattern String (escaped with \\ and \"):
/<img(?:\\s*)(?:.*)(?:\\s*)src(?:\\s*)=(?:\\s*)(['\"]?)([^'\"]*)\\1(?:\\s*)(?:.*)(?:\\s*)[\\/]?>/sU

String:

Result

Match 0

\0 = <img src='hello.jpg'>
\1 =
\2 =

Match 1

\0 = <img src="hello.jpg">
\1 =
\2 =

Match 2

\0 = <img src=hello.jpg>
\1 =
\2 =