orteil42:

orteil42:

as the upcoming version of Cookie Clicker is now localized in multiple languages i’ve had to deal with the eventuality of players naming themselves with something other than plain latin alphabet characters, and to account for this i’ve simply had to replace

image

with

image

it just works!

“but orteil why not just \P{L}+” yeah but then what about the [^’-_0-9] huh. what about them

(via drakeith)