On 2012-06-03 22:37, Robert Williams wrote:
> On Jun 3, 2012, at 17:28, "Chris Purves" wrote:
>
>> I know that the text ends 'end', but I don't know what the Something,
>> something is. I am using preg_match as follows:
>>
>> preg_match('/[^>]*end/',$curl_response,$matches);
>>
>> I want to matc
-Original Message-
From: Chris Purves [mailto:ch...@northfolk.ca]
Sent: Sunday, June 03, 2012 8:26 PM
To: php-general General
Subject: [PHP] help with preg_match
Hello,
I am trying to use preg_match to match something from an html file.
Within the html file is some text that looks
On Jun 3, 2012, at 17:28, "Chris Purves" wrote:
> I know that the text ends 'end', but I don't know what the Something,
> something is. I am using preg_match as follows:
>
> preg_match('/[^>]*end/',$curl_response,$matches);
>
> I want to match 'end' and everything before it that is not '>'.
You
Hello,
I am trying to use preg_match to match something from an html file.
Within the html file is some text that looks like:
Something, something end
I know that the text ends 'end', but I don't know what the Something,
something is. I am using preg_match as follows:
preg_match('/[^>]*en
On 12/13/05, Daevid Vincent <[EMAIL PROTECTED]> wrote:
> I'm trying to do what should be a very simple regex, but can't seem to get
> PHP to work, yet regex-coach and even an XML .XSD work fine:
>
> Valid forms of a windows logon are:
> "foo\bar"
> "\\foo\bar"
> [...]
> //preg_match('/(
I'm trying to do what should be a very simple regex, but can't seem to get
PHP to work, yet regex-coach and even an XML .XSD work fine:
Valid forms of a windows logon are:
"foo\bar"
"\\foo\bar"
function isValidWinLogon($logon)
{
//$logon = 'foo\\bar';
$logon = '\\foo\bar';
print "logon = '$
You need to tell preg_match that there will be multiple characters. Right
now, you're searching for one, and only one.
if (! preg_match ('/^[a-z0-9]+$/', $unchecked_text)) {
The "+" means one or more matches to the range in brackets.
-- tracy
On 1/4/03 9:03 AM, "Anders Thoresson" <[EMAIL PROT
Hi,
I'm trying to write a function that validates the input in a textarea. I
just want to allow alphanumrical characters, and if the user enters
anything else, I display an error message by calling error().
But the following doesn't work. Even if I enter "hello" in the textarea,
I get the er
8 matches
Mail list logo