|PHP url rewrite Preg_replace||Jeroen, 040908 12:51|
I am attempting to convert a "clean URL" (string) into the "old fashioned links".
Is it possible to do this with one regular expression? I always have troubles with regular expressions :(
|Re: PHP url rewrite Preg_replace||Jeroen, 040908 14:52|
To eleborate on my post above, the regular expression needs to do the following:
1. Replace first / character with ?action=
2. Replace second / character with &id=
3. Replace third / character with &year=
...But only after between <A></A> tags.
Darn those expressions are hard.
|Re: PHP url rewrite Preg_replace||absolut, 040910 16:19|
You can try this as example:
|Re: PHP url rewrite Preg_replace||absolut, 040910 16:21|
It's not so hard. Just read PHP manual carefully.
|Re: PHP url rewrite Preg_replace||Jeroen, 040912 16:03|
I got it working (with another solution as Absolut mentioned.)