these are common it seems...

I have a routine that returns a listing of users and all their information
in a list format in an array

1: <userIDnumeric>(status): <userName> : <phoneNumber> : firstName :
lastName : eMail@.com
example:
1: 2233440000(IDLE): idiot : 1234567 : Iyam : Stupid : [EMAIL PROTECTED]

This list can be long.

The problem I am having is I need to know how to grab individual components
out of the listing...
Each list is an element in the array.
I can grab each list doing a "foreach" but I need a reg-ex to grab only the
username or only the phone number...

Earlier reg-ex's I have written I have split lists on commons like the ":"
but can I split this list into 7 parts then re-split # 2 again to have a
total of all 8 list parts?
This is not exactly what I am looking for...I would much rather like to
"plug in" what I am looking for and be able to grab it out..

i.e.  I would like to input which user and which item I want and have it
output only those items...

--user=1 --item=firstName

User1-firstName=Iyam

I just need the reg-ex...I can work out the rest of the programming...


Thanks for any help...


--Dave Mamanakis
--Monroe, WA




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to