Coding Duchess
Coding Duchess

Reputation: 6909

Regex expression to find a string meeting certain criteria

I need a regular expression to find a string meeting certain criteria:

what I do is loop through an array of text to find a string that meets the criteria above, extract it and assign it to a variable.

Upvotes: 0

Views: 136

Answers (1)

Sam Greenhalgh
Sam Greenhalgh

Reputation: 6136

Updated as per comment

55(-?\d-?){8,12}

http://regexr.com/39uic

Upvotes: 1

Related Questions