Regex - Special Character After 1 or more digits -


i'm rough regex , need have special character after number. if there multiple numbers special character have after entire group.

special characters include !@#$%^&*()

abcd1 not valid

abcd1# valid

abcd11# valid

what have checks if string between 5 , 30 characters , contains number

^(?=.*\d)(?=.*[a-za-z]).{5,30}$ 

try this:

'\d+[!@#$%^&*()]' 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -