I need the help of some RegEx-Experts to fix a bug in a WordPress-Plugin, which is no longer maintained by the author.
Inside the plugin there is the following php-sytax to find included scripts:
'/(\\s*)(<script\\b[^>]*?>)([\\s\\S]*?)<\\/script>(\\s*)/i'
This line filters scripts no matter for what media they are written. To fix an bug this line must be changed, so that script tags with the parameter media="print" are not extracted.
How must this line be chanced that script tags with parameter media="print" are not affected?