Python re.sub invalid group reference

Describes the cause and action for error messages.


Error Message(English):
re.sub invalid group reference

Resolution


関連リンク


Pythonのre.subで正規表現置換するグループ番号の後に数字を置きたい時 ...
https://qiita.com/hidei/items/05634f810212e8ce0870

Invalid group reference in python 2.7+ - Stack Overflow
https://stackoverflow.com/questions/13636733/invalid-group-reference-in-python-2-7

sre_constants.error: invalid group reference
https://stackoverflow.com/questions/49255058/sre-constants-error-invalid-group-reference

invalid group reference when using re.sub()
https://stackoverflow.com/questions/48703979/invalid-group-reference-when-using-re-sub

Python re.sub giving error: invalid group reference
https://stackoverflow.com/questions/45200453/python-re-sub-giving-error-invalid-group-reference

python re invalid group reference \10\2
https://stackoverflow.com/questions/21091291/python-re-invalid-group-reference-10-2

invalid group reference when using re.sub() - Stack Overflow
https://stackoverflow.com/questions/48703979/invalid-group-reference-when-using-re-sub?rq=1

Python re.sub giving error: invalid group reference - Stack Overflow
https://stackoverflow.com/questions/45200453/python-re-sub-giving-error-invalid-group-reference?nore・・・

re ? Regular expression operations ? Python 3.7.2 documentation
https://docs.python.org/3/library/re.html

"invalid group reference" error on search/replace - MobileRead Forums
https://www.mobileread.com/forums/showthread.php?t=266968



Name:
Comment:



[return to Python エラーコード一覧]