Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
192
rated 0 times [  196] [ 4]  / answers: 1 / hits: 150644  / 14 Years ago, tue, december 14, 2010, 12:00:00

I want a regex pattern which will allow me any chars, but it will not allow (0-9) numbers?


More From » regex

 Answers
24

Simply:



/^([^0-9]*)$/


That pattern matches any number of characters that is not 0 through 9.



I recommend checking out http://regexpal.com/. It will let you easily test out a regex.


[#94608] Saturday, December 11, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
madilynndiannac

Total Points: 191
Total Questions: 93
Total Answers: 111

Location: France
Member since Thu, Oct 15, 2020
4 Years ago
;