function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PierFrancesco Cardillo - ADMINPierFrancesco Cardillo - ADMIN 

regex - FLOW - used to find part of the string

I'm pretty new and I'm playing with the flows. 
I have a subject of the case (generated via mail to the case) that is like this
NRT_N_22F26234-55_pier_T_delivery
It might be also 
N_22F26234-55_pier_T_delivery
or
22F26234-55_pier_T_rejected
I would like to extract
22F26234-55

my idea is to use regex expression ([0-9]+F[0-9]+-[0-9]+) to identify the position of the regex string... is it possible???

grazie
Alain CabonAlain Cabon
There is no capturing group with formulas than can be returned.

Without Apex, you need to have fixed lengths of string before the pattern ( NRT_N_ 6, N_ 2 and zero) and then you search "-". and again "_" with many nested "IF" ( IF 6th char. = '_'  extraction of the rest of string used to find "-" ... )
It is very tricky and very restrictive.
With Apex, it is easy.