Re: [PHP-DB] Regular Expressions? URGENT

2003-08-02 Thread Adam Royle
Hi Aaron, I found this on a little useful when I started learning regex. Good luck 2 ya! adam http://www.devshed.com/Server_Side/Administration/RegExp/ Hi All, Sorry for OT post but need some info. Does anyone know a good tutorial that explains regular expressions in DUMMY terms? I have a li

Re: [PHP-DB] Regular Expressions? URGENT

2003-08-01 Thread Doug Thompson
Try one of these: http://zez.org/article/articleprint/11 http://www.javaworld.com/javaworld/jw-07-2001/jw-0713-regex_p.html Doug On Fri, 1 Aug 2003 11:34:16 -0400, Aaron Wolski wrote: >Hi All, > >Sorry for OT post but need some info. > >Does anyone know a good tutorial that explains regular

RE: [PHP-DB] Regular Expressions? URGENT

2003-08-01 Thread Hutchins, Richard
Aaron, It's not a tutorial, but if you look at the stripos() function on PHP.NET there are some good examples of expressions that check for multiple characters (needles) in a given string (haystack) both in the description of the function and the user contributed notes at the bottom. Those might b

Re: [PHP-DB] Regular Expressions

2002-04-07 Thread Adam Royle
Don't complicate your code if you don't need it. IF you need to find out the length of the string, use PHP's built-in functions. They're faster and they are easier to write, debug and for others to understand. If I missed your point completely, forgive me. And here's the code for you do figure ou

RE: [PHP-DB] Regular Expressions

2002-04-07 Thread Gurhan Ozen
What are you trying to do? an where is your pattern? are you trying to match any character followed by 2 to 20 any characters in the $string variable? Gurhan -Original Message- From: Ilhan Guvener [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 07, 2002 11:33 AM To: [EMAIL PROTECTED] Su

Re: [PHP-DB] Regular Expressions

2002-04-07 Thread Jason Wong
On Sunday 07 April 2002 23:32, Ilhan Guvener wrote: > Hello > > I'm writing a code for limiting a string input and for that I'm using reg. > ex. but I have a problem: > > $string = "emramile"; > if(!(preg_match("/.{2,20}/","$string"))) { > print "error"; > } > else { > print "O