Page 1 of 1

Bug?

Posted: 23 Apr 2024 23:44
by rjbill
I don't know if I'm missing something here, or if there is a BUG in the Regular Expression Find/Replace,
but it isn't finding what I think it should find. (it finds no text matching)

This is my RegEx: [1-9][0-9]0-9],,

I'm trying to find a 3-digit number followed by two commas.

And this is the text:

Code: Select all

226,,e2   128,,80   155,,9b | 226,,e2   128,,80   159,,9f
| 239,,ef   188,,bc   130,,82 | 226,,e2   128,,80   153,,99 | 226,,e2
128,,80   152,,98 | 226,,e2   128,,80   154,,9a | 227,,e3   128,,80   158,,9e
| 227,,e3   128,,80   157,,9d | 227,,e3   128,,80   159,,9f | 226,,e2
128,,80   157,,9d | 226,,e2   128,,80   156,,9c | 226,,e2   128,,80   158,,9e
| 226,,e2   185,,b9   130,,82 | 226,,e2   157,,9d   175,,af | 226,,e2
157,,9d   174,,ae | 226,,e2   128,,80   186,,ba | 226,,e2   128,,80   185,,b9
| 226,,e2   157,,9d   159,,9f | 226,,e2   157,,9d   156,,9c | 226,,e2
157,,9d   155,,9b | 226,,e2   157,,9d   157,,9d | 226,,e2   157,,9d   158,,9e
| 194,,c2   187,,bb | 194,,c2   171,,ab | 239,,ef   188,,bc   135,,87

Re: Bug?

Posted: 24 Apr 2024 06:44
by pjj
rjbill wrote: 23 Apr 2024 23:44 I don't know if I'm missing something here,
Yes, you're missing one opening bracket!
rjbill wrote: 23 Apr 2024 23:44 This is my RegEx: [1-9][0-9]0-9],,
...while it should have been
[1-9][0-9][0-9],,
With it your regex works as intended.

Re: Bug?

Posted: 25 Apr 2024 07:59
by rjbill
Thanks. I need glasses.