gsl icon indicating copy to clipboard operation
gsl copied to clipboard

replace with regexp

Open ggunti opened this issue 5 years ago • 0 comments

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 avatar Nov 27 '19 19:11 ggunti