Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I have used this regex formula

(^6|^6.[0-9]) (years| experience)

to search experience with year that start with 6 but I'm not sure this is right. Help?

This doesn't seem to pick up the decimal number correctly.

Problem

asked by (50 points)
edited by

1 Answer

0 votes

Try this:

(?<![0-9.])6(.[0-9]+)? years

This will match:

6 years
6.25 years
6.9 years

If you optionally want to search for the word experience as well add ( experience) at the end, e.g.

(?<![0-9.])6(.[0-9]+)? years( experience)?
answered by (57.3k points)
edited by
but it also shows like
5.6,0.6,.. etc
ah, yes. I've edited the answer to check the the preceding character is not a number or a decimal point.
Is it possible  to search for the file that contain text six years/experience  with your above code??
six years( experience)?
...