Re: IsMatch function with pattern (Optional Comma & Space)
Hi @Franklin_vaz ,
Best effort below (did my head in a bit, but seems to work on test model)
With(
{
wText:
Substitute(
TextInput2.Text,
" ",
""
)
},
If(
Find(
",",
wText
) = 0,
IsMatch(
wText,
Digit & Digit & Digit & Digit & Digit & Digit & Digit
),
With(
{
wStrings:
Split(
wText,
","
)
},
CountRows(
Filter(
wStrings,
IsMatch(
Result,
Digit & Digit & Digit & Digit & Digit & Digit & Digit
)
)
) = CountRows(wStrings)
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps