3 ms·
Fun ASCII gotcha: [A-z] includes [ ] \ ^ _ and `
by rement 5y ago
Fun ASCII gotcha: [A-z] includes [ ] \ ^ _ and `
- kitten_mittens_ 5y agoI think this is why I usually see `[A-Za-z]` for ascii. My previous employer decidedly ignored "non-english" text. `[A-z]` -> https://regex101.com/r/IlhPiD/1 https://regex101.com/r/IlhPiD/1 `[A-Za-z]` -> https://regex101.com/r/iWjwf2/1 https://regex101.com/r/iWjwf2/1 After looking it up, `\p{L}` looks like it matches letters https://regex101.com/r/1UiG9S/1 https://regex101.com/r/1UiG9S/1.