I had to search a string in query like this 5X115, but there were possibilities that a string could appear like 5X110/115 ( this is equal to 5X110, 5X115 ) so i wrote this REGEXP
'^5X[0-9]{1,}.?[0-9]{1,}(/115)|5X115'
and it worked fine, now i have to modify this, i have to use a range here, searching between 5X114.3 and 5X115.7 ( subtracted and added 0.7 to it ) Now how can i make this in one expression to search it with in ranges? I have tried to make so many combinations but i was confined to generate this string in the end:
[0] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.3)|5X114.3
3. [1] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.4)|5X114.4
4. [2] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.5)|5X114.5
5. [3] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.6)|5X114.6
6. [4] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.7)|5X114.7
7. [5] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.8)|5X114.8
8. [6] => '^5X[0-9]{1,}.?[0-9]{1,}(/114.9)|5X114.9
9. [7] => '^5X[0-9]{1,}.?[0-9]{1,}(/115)|5X115
10. [8] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.1)|5X115.1
11. [9] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.2)|5X115.2
12. [10] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.3)|5X115.3
13. [11] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.4)|5X115.4
14. [12] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.5)|5X115.5
15. [13] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.6)|5X115.6
16. [14] => '^5X[0-9]{1,}.?[0-9]{1,}(/115.7)|5X115.7
But i need a single line REGEXP, if anyone can help?