Reply
PHP ereg question
Old 09-17-2002, 12:21 PM PHP ereg question
msmekens's Avatar
Junior Talker

Posts: 3
Hey ,

can aynone tell me how to check foor the following reg. expression ?

xxxxx xxx

What I mean is how to check if a given String is made up of 2 words, like first and lastname

Hope I am clear enough...

M
msmekens is offline
Reply With Quote
View Public Profile Visit msmekens's homepage!
 
When You Register, These Ads Go Away!
Old 09-17-2002, 06:19 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
ereg('[:alpha:][:space:][:alpha:]', $namestring);

This is just a late night guess! Please check it!
-dk
__________________
Did I help you? If so, be nice and throw me some TP
dk01 is offline
Reply With Quote
View Public Profile Visit dk01's homepage!
 
Old 09-18-2002, 05:40 AM
msmekens's Avatar
Junior Talker

Posts: 3
Thanks,

I'll try it in a few moments, let you know.

M
msmekens is offline
Reply With Quote
View Public Profile Visit msmekens's homepage!
 
Old 09-18-2002, 03:46 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
hmm... wonder if it was right. lol.
-dk
__________________
Did I help you? If so, be nice and throw me some TP
dk01 is offline
Reply With Quote
View Public Profile Visit dk01's homepage!
 
Reply     « Reply to PHP ereg question
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11449 seconds with 12 queries