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
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
: [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
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
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
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
--
[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
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
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
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
]]
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
11 matches
Mail list logo