Regular Expression issue
- by Christian Sciberras
I have the following URL structure which I need to match to and get the particular id from:
/group/subgroup/id-name
In short, I need to translate a URL like the following:
/Blue Products/Dark Blue/5-Blue_Jelly
To:
/?pagename=Blue Products&model=5
IMPORTANT: I don't need to match group, I already have group.
Example code:
<?php
…