Hi,
Ive got this preg_match which does work....
if(preg_match("/^\s*$t,\?menu=(.*?)\&view=(.*)$/i",$got,$matches)){
($got is always lower-case)
the main problem is with the $t variable (its always a single word -
the variable)
what I am trying to do, is to match a word with OR without an "s" on the end...
Example :-
The user puts in the word "keys", & the line contained in $got
key,?menu= etc....
however keys does not match key(comma)
Ive tried putting
if(preg_match("/^\s*$t\s*,\?menu=(.*?)\&view=(.*)$/i",$got,$matches)){
if(preg_match("/^\s*$ts*,\?menu=(.*?)\&view=(.*)$/i",$got,$matches)){
etc.. - & it doesnt match....
and Ive even got this before the above code :-
$t=(preg_replace("/s\s*$/i","",$t));
(if $t contains a 's' on the end - Shouldnt that remove it ? )
However - I put a word ending in 's' as the $got value - but its not
working / matching the preg...
Any advise
--
G
NZ community groups - [EMAIL PROTECTED]
Freecycle Auckland :-
http://groups.yahoo.com/group/AucklandFreecycle/