I have a string that includes things such as:
[TRLR:1:FC:8]
The TRLR, 1, FC, 8 are variable.
I need to change that into something like:
[TRLR:0::0]
I'm trying to use ereg_replace to do this. This doesn't seem to work:
ereg_replace("/\[$mt:[0-9]🙁.*):[0]\]/","\[$mt:$k:$fc:$res\]",$var);
This is just a test I am doing to try to learn regular expressions in this case. Once I figure out the basics I will write the code to do what I actually need..
What am I doing wrong here?