Package rxpy :: Package parser :: Module replace
[hide private]
[frames] | no frames]

Module replace

source code

Additional parser code for the expressions used in re.sub and similar routines, where a "replacement" can be specified, containing group references and escaped characters.
Classes [hide private]
  ReplacementEscapeBuilder
Parse escaped characters in a "replacement".
  ReplacementGroupReferenceBuilder
Parse group references in a "replacement".
  ReplacementBuilder
Parse a "replacement" (eg for re.sub).
Functions [hide private]
 
parse_replace(text, state)
Parse a "replacement" (eg for re.sub).
source code