I am not good with preg_match or similar functions which are not deprecated.
Here are 2 strings:
/Cluster-Computers-c-10.html/Mega-Clusters-c-15_32.html
I would to find out:
In number 1 example, how to get the value between -c- and .html (the value in the example is 10). The value is always an integer (numeric)
In number 2 example, how to get the value between -c- and .html (the value in the example is 15_32) . The value is always an integer seperated by _
Basically what I want to do is check if a string has either c-10.html or c-15_32.html and get the value and pass it to the database.