Hi @Anonymous , thank you for your post in the Flow Community.
I think to achieve what you asking, some use of substring will help . The example below assumes all the formats are the same length, although this could be enhanced further.
Here is my Flow to get you started, here are the input values and how I have siulated this approach.
After simulating this with a manula trigger, I create an array that is in line with your values "**0"
createArray('XY01234', 'AB01234', '1201234')
Value 1 = 'XY01234'
Value 2 = 'AB01234'
Value 3 = '1201234'
The "Apply to each" iterates through the 3 values, then tests each on the condition.
substring(items('Apply_To_Each_Array'), 3, 7)
starts with
string('0')
Considering the below from the docs ...
substring('<text>', <startIndex>, <length>)
substring('hello world', 6, 5)
| Parameter |
Required |
Type |
Description |
| <text> |
Yes |
String |
The string whose characters you want |
| <startIndex> |
Yes |
Integer |
A positive number equal to or greater than 0 that you want to use as the starting position or index value |
| <length> |
Yes |
Integer |
A positive number of characters that you want in the substring |
This means it checks from the 3rd character on and if that starts with a 0 (zero).
Is this something like what you are looking for when applying the same logic to your own Flow?
Maybe try building this an see if does what you are looking for and report back.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan