How do I match number from 0 to 255 using regex in PHP?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-05-06T07:34:40Z Indexed on 2010/05/06 7:38 UTC
Read the original article Hit count: 137

Filed under:
|

/[0-9]+/ will also match those out of range,like 999

How to write an regex that matches exactly numbers between 0~255 ?

© Stack Overflow or respective owner

Related posts about php

Related posts about regex