Re: [PHP] Problem with Regular expression

2004-10-27 Thread Curt Zirzow
* Thus wrote kioto: > Hi all. > I have a problem: i want subs any characters from a string but i don't > have fix the problem. > The string that i want to manipulate is the value from a text field of a > search engine. > The characters that i want to try substitute is &&, &, +, -, |, ||, or, > a

Re: [PHP] Problem with Regular expression

2004-10-27 Thread Tom Rogers
Hi, Wednesday, October 27, 2004, 9:04:14 PM, you wrote: k> Hi all. k> I have a problem: i want subs any characters from a string but i don't k> have fix the problem. k> The string that i want to manipulate is the value from a text field of a k> search engine. k> The characters that i want to try

Re: [PHP] Problem with Regular expression

2004-10-27 Thread Francisco M. Marzoa Alonso
Try with \s instead of \b, I meant: $pattern = "/(\sand\s)|(\snot\s)|(\sor\s)|(\s&&\s)|(\s&\s)|(\s\.\s)|(\s\+\s)|(\s\|\|\s)|(\s\|\s)/i"; kioto wrote: Hi all. I have a problem: i want subs any characters from a string but i don't have fix the problem. The string that i want to manipulate is the v

[PHP] Problem with Regular expression

2004-10-27 Thread kioto
Hi all. I have a problem: i want subs any characters from a string but i don't have fix the problem. The string that i want to manipulate is the value from a text field of a search engine. The characters that i want to try substitute is &&, &, +, -, |, ||, or, and, not in not case-sensitive mode