I'm trying to clean up my text with Regex. Some ranges are listed as 3.0 - 3.0 which I want simplified to just 3.0 whenever the two numbers match. I tried using regex101 and MDN references, but Airtable seems to use some different syntax than either of those.
The following expressions should be matching but aren't. Does Airtable not support these "back reference" expressions such as \g{n} or simply \n
- (\d.*) - (\g{1})
- (\d.*) - (\1)
Desired Result:
3.0 - 4.0 ==should remain 3.0 - 4.0
3.0 - 3.0 ==should change to 3.0
1.5 - 1.5 ==should change to 1.5
1.0 - 3.5 ==should remain 1.0 - 3.5