Support multiple patterns #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FreakU/replacer#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We can do many fixed strings by generating a regex pattern out of the individual fixed strings:
then, we can make a dict that maps patterns to replacements, and look up that dict for each match, by passing
replacements_dict.get
as thereplacement
argument to re.replace.