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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -