php - Regex - First 6 characters must be digits and be in range (x, y) -


i have little question :) need regex string -- 6 characters, example "112233abc" regex should first 6 characters digits, , in range 100000-200000 (higher 100 000 , lower 200 000)

thank you.

there isn't question thats 1. 2. try this:

^[1]\d{5} 

or if want match 200000:

(^[1]\d{5}|^200000) 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -