Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
113
rated 0 times [  120] [ 7]  / answers: 1 / hits: 18363  / 12 Years ago, tue, january 29, 2013, 12:00:00

I have small requirement in Regular expression,here I need minimum of one letter of Alphabets and followed by numbers and special characters. I tried the following regular expressions but I'm not getting the solution.



/^[a-zA-Z0-9-_/s,.]+$/


and



/^([a-zA-Z0-9]+)$/

More From » regex

 Answers
11

I need minimum of one letter of Alphabets




[a-z]+



and followed by numbers and special characters.




[0-9_/s,.-]+


Combined together you would get this:



/^[a-z]+[0-9_/s,.-]+$/i


The /i modifier is added for case insensitive matching of alphabetical characters.


[#80561] Sunday, January 27, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gilbertomaximilianod

Total Points: 208
Total Questions: 96
Total Answers: 111

Location: Northern Mariana Islands
Member since Wed, Feb 24, 2021
3 Years ago
;