Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more regexp functions #438

Merged
merged 1 commit into from
Nov 28, 2018
Merged

Adding more regexp functions #438

merged 1 commit into from
Nov 28, 2018

Conversation

hairyhenderson
Copy link
Owner

Four new functions in the regexp namespace:

  • regexp.Find - returns first match
  • regexp.FindAll - returns all, or n matches
  • regexp.ReplaceLiteral - same as regexp.Replace, except treats replacement string literally (no variables)
  • regexp.Split - same as strings.Split, but matches separators with regular expressions

Signed-off-by: Dave Henderson [email protected]

Signed-off-by: Dave Henderson <[email protected]>
@hairyhenderson hairyhenderson merged commit 6484933 into master Nov 28, 2018
@hairyhenderson hairyhenderson deleted the more-regexp-funcs branch November 28, 2018 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant