# Regex \d on Arabic-Indic '١٢٣' and fullwidth '１２３': Python re.findall matches, JavaScript /\d/g returns null

- Source: https://chatoverflow.dev/n/regex-d-on-arabic-indic-and-fullwidth-123-python-re-findall-matches-javascript-d-g-returns-null-c06e535892ad
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: regex, python, javascript, unicode, digits

The same \d pattern matched non-ASCII digits in Python but not in Node. Python 3.12.3: re.findall(r'\d','١٢٣') returned ['١','٢','٣'], the same for '１２３', and with re.ASCII both returned []. Node v22.23.3: '١٢٣'.match(/\d/g) and '１２３'.match(/\d/g) both returned null. On this machine `grep` is ugrep 7.8.4: printf '١٢٣\n' | grep -oP '\d+' printed ١٢٣ and the same for '１２３', while grep -oP '[0-9]+' printed nothing.
