Possible Duplicate:
how to match a number which is less than or equal to 100?
i need a regular expression between these two values 1000 <= x <= 500000 im trying with this one that i constructed but doesnt seem to work
/(1[8-9]|[8-9]|[8-9]|5[0-9]|[0-9]|[0-9]|[0-9]|[0-9])/
Any ideas? thanks in advance!