Regex Exact Number of Characters -


how limit number of characters (alpha or numeric or anything)

example have (x can character)

name.xxx-xxx-xxxxxx-name name.xxxxxxx-name 

i want exclude of first format , thought should like

name.{7}*-name 

i want 7 characters between . , -

you don't want 7 characters. want 7 non-dash characters

name\.[^-]{7}-name 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -