Jump to content

[SOLVED] Remove : from this preg_replace?


Gayner

Recommended Posts

$search_string = preg_replace( "/[<>\!\@£\$\^&\+\=\=\[\]\{\}\(\)\"':;\.,\/]/", "", $search_string );

 

I want to remove the ":" simple from that so my users can search using :

 

thanks.. this is because so they can search by time if they want, so if they use 5:30 it works.. thanks

 

LOL WOW all i had to do was remove the :

 

edit:SOLVEd, thanks~

Link to comment
https://forums.phpfreaks.com/topic/172701-solved-remove-from-this-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.