Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make splitters support collections of strings as separators #37

Open
Labels
c:splitters enhancementNew feature or request therefor under considerationDev has not yet decided whether or how to implement
@jwodder

Description

PrecededSplitter, SeparatedSplitter, and TerminatedSplitter should support separator being an Iterable[AnyStr], in which case input will effectively be split on re.compile("|".join(map(re.escape, separator))), but using a trie instead of a regex.

  • Ambiguities should resolve to the first match in the iterable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c:splitters enhancementNew feature or request therefor under considerationDev has not yet decided whether or how to implement

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /