if (preg_match("/^\s*NEW ARCHIVE
SEARCH\s+(\w*.*\w*?)\s+(\w.*?\w)\s*$/i", $val,$matches)){


Hi,

I'm altering one of my pregs - & wondering if the above will work in
all cases (it seems to work..)

Basically, the person will put the text

NEW ARCHIVE SEARCH

and then two bits of changeable data.. -

the 2nd word/phrase MUST have a letter (a-z), & end in an (a-z).. -
But can contain a dash or no dash..


the 1st input, I want to enter a partial email address - or a full
email address..

I entered a search term of "4" - to find email addresses with the
number 4 in it... - & my previous preg didn't work...   so Ive changed
it to the above - Which seems to work...

I think its going ok - But im just curious - Does anyone see a problem
with the above preg ?

-- 
G
NZ community groups - [EMAIL PROTECTED]
Freecycle Auckland :-
http://groups.yahoo.com/group/AucklandFreecycle/

Reply via email to