Hi,
I'd like to match and extract variables from: {{variable:int}}
- variable would be anything a-z
- : is a separator
- int would be an integer 0-9
Curretly i have: preg_replace('!\{\{(\S+)\}\}!', "$1", $string)
which does only half the job, i still have to split by :
.
Thank you!