I think you are looking for the s
regex flag which allows matches to span line boundaries:
Something like
(?s)<style[^>]*>(.*?)<\/style>
, try it here.
(/<style[^>]*>(.*?)<\/style>/gs
in JS syntax)
I think you are looking for the s
regex flag which allows matches to span line boundaries:
Something like
(?s)<style[^>]*>(.*?)<\/style>
, try it here.
(/<style[^>]*>(.*?)<\/style>/gs
in JS syntax)