You need to learn how to use regular expressions.  The manual page is here:

http://www.php.net/manual/en/ref.pcre.php

I could easily write the regular expression for you, but then you wouldn't learn anything.

cheers,

Travis

Student wrote:
Hi i was hoping if someone can help;

I want to trim the following text

[i:abcdef]

but the inside text is different at time eg abcdef, bcdefg, etc etc
how can i trim [i:(some text here)] so that i can replace them with nothing.

eg these are to be trimmed.

[i:abcdef]
[i:bcdefg]
[i:xyzab]
[i:priftds]

how can i trim them..
thanks


-- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to