When the input of the REGEX_MATCH function matches the regex completely it returns the input twice.
input = “12345678”
function:
REGEX_MATCH(input, “[0-9]+”)
expected result:
[“12345678”]
received result:
[“12345678”, “12345678”]
When the input of the REGEX_MATCH function matches the regex completely it returns the input twice.
input = “12345678”
function:
REGEX_MATCH(input, “[0-9]+”)
expected result:
[“12345678”]
received result:
[“12345678”, “12345678”]
Hi Chris,
it seems like it was my fault. Actually, I used:
REGEX_MATCH(input, “([0-9]+)”)
but accidentally placed the correct regex in my post.
REGEX_MATCH(input, “[0-9]+”)
If you use the upper regex, it should return the input twice.
Kind Regards,
Oliver
Hi Oliver,
I think it’s because you are using the (outer) group brackets. So you got a match and a group match too
I’m using this side when looking for a regex:
I can be wrong, so correct me then pls.
Regards Chris
Hi Chris,
I used this one https://regexr.com/ and got the following result.
Turns out: In this case Tulip treats the regex differently.
Kind Regards,
Oliver.