[VIEWED 2389
TIMES]
|
SAVE! for ease of future access.
|
|
|
mampakha
Please log in to subscribe to mampakha's postings.
Posted on 11-04-08 5:46
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
If you want to modify your own code to include wild card then try this "^(\*\.)?([a-zA-Z0-9]([a-zA-Z0-9]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$"
|
|
|
|
techGuy
Please log in to subscribe to techGuy's postings.
Posted on 11-04-08 6:14
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
I'm too bad with regex, but lets give it a try. According to mampakhas regex, it will also accept apple.com I'm not sure if thats allowed. This is modification to mampakha's regex..check if this one works ^((\*\.|[a-zA-Z0-9]+\.))+([a-zA-Z0-9]+\.)+[a-zA-Z]{2,3}$
oops too late
anyway herez modified of myself since the prev one of mine will also accept test.*.appale.com ^((\*\.|[a-zA-Z0-9]+\.)){1}([a-zA-Z0-9]+\.)+[a-zA-Z]{2,3}$
Last edited: 04-Nov-08 06:19 PM
|
|
|
HowardRoark
Please log in to subscribe to HowardRoark's postings.
Posted on 11-04-08 6:24
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Thanks techGuy for your time, but apple.com is a valid domain according to my requirement.
|
|
|
mampakha
Please log in to subscribe to mampakha's postings.
Posted on 11-04-08 8:47
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
howard, thanks for the site http://www.fileformat.info/tool/regex.htm...i didn't know about it.
Last edited: 04-Nov-08 08:51 PM
|
|