---
title: "Comment by Mark on \"Regex…\" | Hashnode"
description: "The page https://regex101.com/ is really useful for analyzing regular expressions. Note that /^[a-zA-Z]+$/ misses a lot of letters, like &quot;é&quot; or &quot;"
url: "https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb/comment/5c1923fe82e2450f7afc6eb9"
---

[Discussion](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb)

Comment [Regex…](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb)

[Mark](https://hashnode.com/@mverleg)

[Dec 18, 2018](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb/comment/5c1923fe82e2450f7afc6eb9)

The page [regex101.com](https://regex101.com/) is really useful for analyzing regular expressions.

Note that `/^[a-zA-Z]+$/` misses a lot of letters, like "é" or "字"

[Mark](https://hashnode.com/@mverleg)

[Dec 18, 2018](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb/comment/5c1923fe82e2450f7afc6eb9#reply-5c1953f63960ebb0612df5c6)

I like the name "internet people" by the way

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Dec 20, 2018](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb/comment/5c1923fe82e2450f7afc6eb9#reply-5c1b82ffce0fd2f92cb365f3)

On that note, I recently discovered that some regex engines treat some meta characters differently depending on the locale. With Python (and it changed between 2 and 3!) `\w` is either equivalent to `[a-zA-Z0-9_]`, or the same one plus all the diacritics of the language (e.g. éèàùç...) (in Python, that's where the `re.ASCII` flags is useful

I'm curious to see how people use regexes e.g. which one do you use between \\d vs \[0-9\], things like that?

[Mark](https://hashnode.com/@mverleg)

[Dec 20, 2018](https://hashnode.com/posts/regex/5c19033a82e2450f7afc6dfb/comment/5c1923fe82e2450f7afc6eb9#reply-5c1b8a2013e6579f6dfd227b)

Well 90% of my regex use is searching through codebase or logfiles or the like. Not as part of the application, so I just use whatever works. For real text, I think you'd need `\p{L}` ([src](https://stackoverflow.com/questions/3617797/regex-to-match-only-letters)) but unicode is tricky...
