Skip to content

Support substring replace #1

Description

@iliverez

Create a replace method that will substitute a given substring with a given new one and will return the result in a new string.
Optionally, a count will be passed to denote how many occurrences to replace. Default value will be -1 which means all.
Optionally, the reverse option can be given, to start replacing from the end of the string. Default operation is to replace from the start.
If the old substring is not found, the original string is returned in a new object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions