Hi guys & galls,
I am an oldfashioned basic programmer doing not too badly with php, but regular expressions are a mystery to me, although I can see its advantages!
For instance, I now want to replace in a text a token like this:
[photo:1] some text [photo:01256] some more text
with this:
<img src='..\pics\img1.jpg' > some text <img src='..\pics\img01256.jpg' > some more text
Is there an easy way of doing this using ereg_replace?
Thanks on beforehand
I am an oldfashioned basic programmer doing not too badly with php, but regular expressions are a mystery to me, although I can see its advantages!
For instance, I now want to replace in a text a token like this:
[photo:1] some text [photo:01256] some more text
with this:
<img src='..\pics\img1.jpg' > some text <img src='..\pics\img01256.jpg' > some more text
Is there an easy way of doing this using ereg_replace?
Thanks on beforehand