Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can sb help me with regular expression for string which starts with 1 and has length 25
Following verifies length^^(?:[0-9] ?){6,19}[0-9]$
But I want the string to start with 1
Posted
Comments
Vinay singh puniya 7-Nov-11 2:19am    
please mention ur requirement clearly

1.{24}


—SA
 
Share this answer
 
Comments
RaisKazi 11-Nov-11 12:12pm    
Simple short and correct. 5ed.
Sergey Alexandrovich Kryukov 12-Nov-11 0:06am    
Thank you, Rais.
--SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Nov-11 11:29am    
Do you think it's better to learn a bit that to ask questions like that? Well, my 5.
--SA
RaisKazi 11-Nov-11 12:11pm    
Thank you SA. "Regular Expresssion" is a topic which one programmer should never avoid to learn. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900