I'm trying to find peaks in an area where the elevation contains other characters than numbers and the decimal point. I started with the non-negated regexp to test and got quite far:
Edit - examples of what I want to match: ele=123 ele=1.234 Examples of what I don't want to match: ele=123. ele=123m ele=123.45 m asked 30 Dec '19, 18:35 V0174 |
OK, thanks to maxerickson helping me to got to the right path, it seems it was a regex issue - dot inside of [] [doesn't need to be escaped]1. I would expect that it'd work with escaping too, but that's Overpass. An improved example of what I wanted to do - list of peaks with potentially wrong elevation in France. answered 31 Dec '19, 08:40 V0174 |
Can you put a couple examples in your text, of what you do want to match and what you don't want to match? I don't think I fully understand what you want, but I think
["ele"~"[0-9.]+"]
does the same thing as your queries.Thanks, that helped me to find the problem - dot should not be escaped inside of square brackets in Overpass QL.