{"library":"re-assert","title":"re-assert","description":"A library to show where your regex match assertion failed. It provides a helper to clarify regex failures in tests. Current version: 1.1.0, release cadence: low, maintained by asottile.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install re-assert"],"cli":null},"imports":["from re_assert import ReAssert"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from re_assert import ReAssert\n\n# Pattern with group names\npattern = r\"(?P<name>\\w+) (?P<age>\\d+)\"\nmatcher = ReAssert(pattern)\n\n# This assertion will fail with a detailed message\n# matcher == 'John 30 extra'\n# Uncomment to see error: matcher == 'John 30' (this matches)","lang":"python","description":"Basic usage: create a ReAssert object with a regex pattern, then compare with a string. If match fails, it prints where and why.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}