Marcin
Marcin

Reputation: 5579

php regex at least 3 characters match?

any ideas how to modify this regex:

([A-Z]{3}[0-9][0-9A-Z-\/]*)    

so it matches from at least characters {3} (3 and more) not just {3} ?

cheers,

/Marcin

Upvotes: 2

Views: 4861

Answers (1)

BoltClock
BoltClock

Reputation: 723638

All you need is a comma:

([A-Z]{3,}[0-9][0-9A-Z-\/]*)   

Upvotes: 8

Related Questions