#18584 closed defect (invalid)
Regex searching with ^ does not seem to work properly
Reported by: | pangoSE | Owned by: | pangoSE |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | search regex | Cc: |
Description
Reproduce:
Download from overpass: image~/commons\.wikimedia\.org/ in schleswig-holstein
Search using this expression for image= tags which begin the correct url and do not already have a wikimedia_commons tag:
image="^https://commons.*" -wikimedia_commons
The search returns image tags which start with another url:
see image
According to the referenced regex in the wiki: http://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html it should work to only match "beginning of a line".
Attachments (2)
Change History (8)
by , 5 years ago
Attachment: | regex-error.jpg added |
---|
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Keywords: | overpass regex added |
---|
by , 5 years ago
Attachment: | 2020-01-20-203118_1119x513_scrot.png added |
---|
comment:3 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
I cannot reproduce using attachment:2020-01-20-203118_1119x513_scrot.png
Please provide a small data set and a search query to illustrate the problem.
comment:4 by , 5 years ago
Hi! Thanks a lot for your attention to this. I just found out that I might have misunderstood the drop-down dialog (the values of the selection are italic with number of occurences afterwards). I'm sorry for the noise, we can close this.
comment:5 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | needinfo → closed |
comment:6 by , 5 years ago
Keywords: | search added; overpass removed |
---|
Also reported here in 2015: https://help.openstreetmap.org/questions/46917/josm-search-function-regex-use-and-samples