Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
œF
: Regex Findall: Find all instances of regexx
in stringy
; return a list of matchesœḞ
: Regex Finditer: Find all instances of regexx
in stringy
; return a list of lists of groupsœṠ
: Regex Sub: Take arguments substitution configuration[x1,x2]
and y. Substitute all instances of regexx1
with replacement stringx2
in stringy
.œR
: Regex Search: Give a boolean denoting if regexx
matches stringy
in any position.œṢ
: Regex Split: Split stringy
at occurrences of regexx
.ÐR
: Regex sub quick:<regex><sub>ÐR
replaces all occurrences of<regex>
with<sub>
applied to each occurrence’s list of groups and spanSome possible issues:
œṠ
is given a left argument/configuration which is a string, it substitutes all instances of the first character of the string with the second character of the string in the right argument, which is the same as atomy
.ÐR
usesto_string(x) = ''.join(x) if is_string(x) else str(x)
to cast the output of<sub>
to string. Not sure if there is a better casting method.