You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
ggunti
changed the title
how to replace with regexp
replace with regexp
Nov 27, 2019
I would like to use
regexp.match(pattern, text, match)
in order to manipulate thetext
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.The text was updated successfully, but these errors were encountered: