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

replace with regexp #40

Open
ggunti opened this issue Nov 27, 2019 · 0 comments
Open

replace with regexp #40

ggunti opened this issue Nov 27, 2019 · 0 comments

Comments

@ggunti
Copy link

ggunti commented Nov 27, 2019

I would like to use regexp.match(pattern, text, match) in order to manipulate the text string.
For example, in case that text = "completeProfile", I want to obtain "COMPLETE_PROFILE" as result.

pattern is just a regular expression, I can figure it out, but my question is: where is stored the resulted string? I can't figure out how to access the resulted string (in my case "COMPLETE_PROFILE") in my script.

Or I am trying to use a wrong function? regexp.match() is not what I should use for what I want to achieve? I am very curious about it, please let me know.

@ggunti ggunti changed the title how to replace with regexp replace with regexp Nov 27, 2019
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

1 participant