I have a string that contains multiple substrings like onclick="pcm_popup_open(2, 'Something')"
which I want to remove. The parameters in the function in the string will be different each time, always an int
and a string
though, so it could also be onclick="pcm_popup_open(1, 'Something else')"
.
I don't really understand regular expressions well enough, and as far as I know I can't use a wildcard in str_replace. Could someone please help? Thanks.