#16171 closed defect (fixed)
Case sensitive regexp key=value searches aren't case sensitive
Reported by: | anonymous | Owned by: | simon04 |
---|---|---|---|
Priority: | normal | Milestone: | 21.04 |
Component: | Core | Version: | latest |
Keywords: | search regex | Cc: | gaben |
Description
Consider this search, assuming that I have some key values available that are 'Ut', 'UT', 'uT', 'ut'.
Search string: "addr:state"="^Ut$"
[x] Replace selection
[x] case sensitive
[x] regular expression
What I want here is obvious: addr:state keys with the value of exactly 'Ut'.
What is returned is anything with '[Uu][Tt]'. In other words, this type of search doesn't respect case sensitivity even though I've told it to.
By contrast, this search works properly and does use case sensitivity using a valuefragment:
Search string: "addr:state":"^Ut$"
[x] Replace selection
[x] case sensitive
[x] regular expression
So what I'm asking for is key=value regexp case sensitive searches to be treated the same way as key:value regexp case sensitive searches.
Attachments (0)
Change History (7)
comment:1 by , 5 years ago
Version: | → latest |
---|
comment:3 by , 4 years ago
Keywords: | search added |
---|
comment:4 by , 4 years ago
Keywords: | regex added |
---|
comment:5 by , 4 years ago
Milestone: | → 21.04 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:7 by , 4 years ago
Oh, it was missing the whole time the case sensitivity flag. Thanks for the fix!
For me, the regex searches are always case insensitive no matter what I do.
With this expression ~90% of the search results start with lowercase letter:
name:"^[a-z].*"
. But it should only return objects with lowercase starting character.I'm using the latest JOSM dev version r15298.