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 2390 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 365 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
TPS Re-registration
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
ChatSansar.com Naya Nepal Chat
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
Toilet paper or water?
TPS EAD auto extended to June 2025 or just TPS?
Do nepalese really need TPS?
Biden out, Trump next president, so what’s gonna happen to TPS, termination?
Nas and The Bokas: Coming to a Night Club near you
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
मन भित्र को पत्रै पत्र!
Will MAGA really start shooting people?
Democrats are so sure Trump will win
Tourist Visa - Seeking Suggestions and Guidance
From Trump “I will revoke TPS, and deport them back to their country.”
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
Nas and The Bokas: Coming to a Night Club near you
TPS Update : Jajarkot earthquake
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