Hey guys,

I need some help with preg_replace()

I have something like this....


And I want to use preg_replace to replace it with nothing.... however gallery_20 can be anything... but im not sure on the patten...

Can anyone help please?
I don't understand how to change all this.... $patterns = array ('/(19|20)(\d{2})-(\d{1,2})'); (from php.net)


$your_string = preg_replace('/\{\$\w+\}/', '', $your_string);

Thanks mate!

How do you know what to put? I couldn't find anything on the web about it :(