Here is the data I want to capture (10 - 12) <===== This format
Sample Data:
sdfdsfsdffsd 16.50sd - 57676766.0sd
16.50sd - 57676766.0sd
16.50sd - 57676766.0sd
sdfsdffsdf 6sd - 5.989898989sd sdfsdsdf
sdfdsf 6.50sd - 76.50sd sdfsdfsd
sdfsf sd 12sd - 15sd sdfdsdffsdff
16.50sd - 57sd
16sd - 50sd
1.50sd - 5.0sd
1sd - 5766.34sd the sdfdsfdsf spesdfdsfed
1sd - 5766.34sd the ssdfsdf sdfsdf
Here is what I have so far for a regex
[^\w\.\n]((\s?\-?\s?)(\d*(?=\.)))
Here is the result: Link Here https://regex101.com/r/KNvHn8/1
So
- Required format (16 - 55)
- Sample Data blah blah 16.50 - 55.30 blah blah blah I need the Integers before the decimal points (16) ( - ) (55)
I can achieve this with 2 regex but preferable needs one.
Thanks