mampakha
Replies to this thread:

More by mampakha
What people are reading
Subscribers
Subscribers
[Total Subscribers 1]

mampakha
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Any regex experts?
[VIEWED 2223 TIMES]
SAVE! for ease of future access.
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}$"


 
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

 
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.
 
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

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
Toilet paper or water?
Tourist Visa - Seeking Suggestions and Guidance
advanced parole
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters