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

How to use regular expression as parameters for a function (like grel:string_replace) ? #180

Open
darreal44 opened this issue Nov 3, 2022 · 1 comment

Comments

@darreal44
Copy link

Issue type: ❓ Question

How to use regular expression as a parameter for a function (like grel:string_replace) ?

@aw350m33d
Copy link

You can use the shortcut version:
grel:string_replace(valueParameter=$(id), p_string_find="\w-\w", p_string_replace="")

Or the full one:

- function: grel:string_replace
  parameters:
    - [grel:valueParameter, $(id)]
    - [grel:p_string_find, "\w-\w"]
    - [grel:p_string_replace, ""]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants