[PHP] Simple RegExp Problem...

2002-11-22 Thread @ Nilaab
Hello, Ok, I know this is easy for most of you, and believe me I've been searching and trying to learn all about regular expressions, but I can't seem figure out how to allow addition of spaces between characters. $text = Here is some text; Here, I want to be able to match the alpha characters

Re: [PHP] Simple RegExp Problem...

2002-11-22 Thread Ernest E Vogelsinger
At 13:38 22.11.2002, @ Nilaab spoke out and said: [snip] Ok, I know this is easy for most of you, and believe me I've been searching and trying to learn all about regular expressions, but I can't seem figure out how to allow addition of spaces between

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread @ Nilaab
: [PHP] Simple RegExp Problem... At 13:38 22.11.2002, @ Nilaab spoke out and said: [snip] Ok, I know this is easy for most of you, and believe me I've been searching and trying to learn all about regular expressions, but I can't seem figure out how

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread Ernest E Vogelsinger
At 21:59 22.11.2002, @ Nilaab said: [snip] Thanks so much!!! It works. I didn't know I could also place extra characters inside the brackets to specify what I want. :) [snip] The square brackets simply form a group

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread @ Nilaab
Thanks again Ernest! This will be extremely helpful to me in the near future. - Nilaab -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 3:23 PM To: @ Nilaab Cc: Php-General Subject: RE: [PHP] Simple RegExp Problem... At 21

[PHP] Simple regexp

2002-08-29 Thread Adam Alkins
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg([a-zA-Z0-9:],$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] Simple regexp

2002-08-29 Thread Todd Pasley
[EMAIL PROTECTED] Sent: Friday, August 30, 2002 3:19 PM Subject: [PHP] Simple regexp Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg([a-zA-Z0-9:],$string) working? Guidance

RE: [PHP] Simple regexp

2002-08-29 Thread Martin Towell
List Subject: [PHP] Simple regexp Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg([a-zA-Z0-9:],$string) working? Guidance appreciated. -- Adam Alkins http

[PHP] Simple regexp

2002-08-28 Thread Adam Alkins
Hi Folks, Seeking some guidance here. My regexp knowledge is pathetic. I want to do a simple validation of an ipv6 address. I just want to validate the entire string (not specific blocks) if it has the allowed charachters. I though ereg('[A-Fa-f0-9:]') would work, but it isn't. Anyone can

[PHP] simple regexp question - validating new line chars

2001-12-08 Thread Krzysztof Jarecki
Hi everyone:) I need to validate a string that comes from a submitted form. There's nothing unusual in it... but the problem part showes up, when I need to validate a new line character... I have tried many diffrent variations of the code and I have ended up on something VERY simple: ?php

RE: [PHP] simple regexp question - validating new line chars

2001-12-08 Thread Jack Dempsey
]] Sent: Saturday, December 08, 2001 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP] simple regexp question - validating new line chars Hi everyone:) I need to validate a string that comes from a submitted form. There's nothing unusual in it... but the problem part showes up, when I need to validate