Re: [PHP-WIN] Regular expression

2007-04-25 Thread Kevin Smith
A little more precise to what you asked for: Mikael Grön wrote: Hey all! I'm in panic! I need a regex that returns true on strings containing both 'update' and 'where 1 = 1'. Both must be case insensitive and there might be spaces between the 1's and the '=', and there might not.. Some nitw

Re: [PHP-WIN] Regular expression

2007-04-25 Thread Kevin Smith
Here's a very simple one I just knocked out in a few seconds: Mikael Grön wrote: Hey all! I'm in panic! I need a regex that returns true on strings containing both 'update' and 'where 1 = 1'. Both must be case insensitive and there might be spaces between the 1's and the '=', and there migh

[PHP-WIN] Regular expression

2007-04-25 Thread Mikael Grön
Hey all! I'm in panic! I need a regex that returns true on strings containing both 'update' and 'where 1 = 1'. Both must be case insensitive and there might be spaces between the 1's and the '=', and there might not.. Some nitwit chose to build the database functions of the site I'm working on

[PHP-WIN] Regular expression to remove non-ascii text from a string

2004-03-11 Thread David Felton
Can anyone help me out with a regular expression to remove all non-ascii characters from a String? I've got as far as: $newfilecontents = ereg_replace("[^\x01-\x7f]","",$newfilecontents); but this seems to strip all the characters from the String! Any help would be appreciated. Thanks. **

[PHP-WIN] Regular Expression on tool output

2004-02-27 Thread Jim MacDiarmid
Hi Everyone, I'm still very new to this regular expression thing and I'm hoping someone can offer some help. I've been able to match parts of this but now I'm at a loss. A little background on this. I'm running a console EXE tool to generate some output to display currently logged in users in all

[PHP-WIN] Regular Expression help?

2004-02-13 Thread Jim MacDiarmid
Can anyone recommend where I might be able to get some "Regular Expression" assistance? I'm very new to "Regular Expression". I've read some of the info I've found on the web, and have a few books that I've read, however I'm at a loss and confused as heck. I'm hoping someone would be able to shed s

[PHP-WIN] Regular Expression Question

2003-11-21 Thread Gerardo Rojas
I have a regular expression, that finds what i want. The problem lies in that I don't want to replace this pattern with another. I want to prefix the pattern with a character. Any suggestions as to how I might accomplish this? regular expression = '/^\d\{1,2}\./' -- Gerardo S. Rojas mailto:

Re: [PHP-WIN] Regular expression under PHP for Win? Missing?

2001-04-03 Thread Yasuo Ohgaki
Sorry for late reply, I was running simple test scripts that is works for PHP/Apache DSO/Linux. It turns out to be a my mistake in code. I didn't take a look at errors on browser. Since I believed all scripts are working under Linux/Apache. Both ereg() and eregi() works (PHP4.0.5RC1/Apache SAPI)

Re: [PHP-WIN] Regular expression under PHP for Win? Missing?

2001-03-31 Thread Tobias Talltorp
They should both be there, but perhaps they have left it out from the new PHP4.0.5RC1, since preg is ever so much faster... Strange though, since I think there are many sites who need to rewrite their code to upgrade... // Tobias ""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message 9a0jsj$d9h$[E

Re: [PHP-WIN] Regular expression under PHP for Win? Missing?

2001-03-29 Thread Phillip Bow
If those aren't there(I am pretty sure they are) then the preg commands should work. I know I am using one form or another on my site. -- phill ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9a0j2q$5vn$[EMAIL PROTECTED]">news:9a0j2q$5vn$[EMAIL PROTECTED]... > Hello all, > > I would like to

[PHP-WIN] Regular expression under PHP for Win? Missing?

2001-03-29 Thread Yasuo Ohgaki
Hello all, I would like to know standard regular expression functions (ereg(), eregi(), etc) are missing in PHP for Windows? (I use PHP4.0.5RC1 from www.php4win.de) Thanks -- Yasuo Ohgaki -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio