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

Formula: string\match & string\matchAll functions #1609

Closed
yurikuzn opened this issue Feb 14, 2020 · 1 comment
Closed

Formula: string\match & string\matchAll functions #1609

yurikuzn opened this issue Feb 14, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@yurikuzn
Copy link
Contributor

@yurikuzn yurikuzn commented Feb 14, 2020

string\match

string\match(STRING, REGULAR_EXPRESSION, [OFFSET]) Retrieves the first result of matching a STRING against a REGULAR_EXPRESSION. Returns NULL if no matches are found.

Example:

string\match('string\\match('{token1} foo {token2} bar', '/{[^}]*}/')

will return {token1}.

string\matchAll

string\matchAll(STRING, REGULAR_EXPRESSION, [OFFSET]) Retrieves all result of matching a STRING against a REGULAR_EXPRESSION. Returns NULL if no matches are found.

Example:

string\matchAll('string\\match('{token1} foo {token2} bar', '/{[^}]*}/')

will return an array ['{token1}', '{token2}'].

@yurikuzn yurikuzn changed the title Formula: string\match & string\ Formula: string\match & string\matchAll functions Feb 14, 2020
@yurikuzn yurikuzn self-assigned this Feb 14, 2020
@yurikuzn yurikuzn added this to the Version 5.8.3 milestone Feb 14, 2020
@yurikuzn

This comment has been minimized.

Copy link
Contributor Author

@yurikuzn yurikuzn commented Feb 14, 2020

@yurikuzn yurikuzn closed this Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.