Jump to content

The use of preg_replace


dymon

Recommended Posts

Hi,

I have to replace some symbols with empty string, for example:

'\abd' to replace with '', I need to replace the back slash and 2 or 3 symbols after it with '', and no matter what the 2 or 3 symbols are.

I know that for this I need the function preg_replace but I can not make it work.

Thanks in advance.

Dymon
Link to comment
https://forums.phpfreaks.com/topic/24338-the-use-of-preg_replace/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.