Hi all,
I've been trying to find a solution for this but nothing I can come up with seem to work.
I have a bunch of text coming in that can look like this
Hello, this i a whole lot of text that contain the word APPLE, APPLE123456 and it can contain various versions of the group APPLE and 6 digits put together, for example APPLE654321 and maybe also APPLE342514. NOTE, it is of importance that only the APPLE followed by the 6 digits is replaced, not every instance of the word APPLE.
What I need is to find a way to substitute APPLE999999 (so apple and the 6 following digits) with another word but keeping the digits.
For instance, instead of APPLE I want it to say REPLACED followed by the digits inside of a textbox.
I've been testing various things with regex, but since I don't know regex or how to properly incorporate it into powerapps I've yet to get a good result.
Substitute(Label1.Text, "([^APPLE\d[0-9]{6}$])", "REPLACED"& "[0-9]")
Anyone got an idea if this can be accomplished somehow?