purpleclay/chomp

[Feature]: add combinator to handle text that is prefixed or suffixed

Closed this issue · 0 comments

Describe your feature

chomp is currently missing combinators that can handle strings that are either prefixed or suffixed:

  • Hello,: is prefixed with a ,
  • :Hello: is suffixed with a :

These combinators should not return the extracted text with these defined prefix or suffix characters.

Any additional information?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct