Hi,
I am creating a record in a list from a form.
The input from the form is a string and the input in the list should be a number.
Occassionally, someone would put a integer and then provide a text string (with or without integer in it). ex. 100 with 50 A and 50 B
I could not find a viable solution to extract the first integer from this string. From the example, I only want the 100, not other integers nor text.
Copilot suggested:
int(replace(variables('@{variables('Noinstructutor')}'), 'a', ''))
and
int(first(match(variables('YourTextVariable'), '\d+')))
but neither works.
Can someone help me with this issue?
Thanks,
Rita