Hello @harsh.mehta,
If you are using regext then each date you can treat like an object. Then you could use it in If loop or in Flow Decision and do something like:
If variable date is looking like this then change for this text, else (here another loop) if looking like this then change for this, else… etc.
But the problem in that would be Month’s are 12 and we know that in advance but Year will be dynamic so making an nested IF loop or Flow decision would not be appropriate solution. As per my understanding.
(?<=[JFMASOND][a-z]{2}).*(?=\d{4})
Positive Lookbehind (?<=[JFMASOND][a-z]{2})
Assert that the Regex below matches
Match a single character present in the list below [JFMASOND]
JFMASOND matches a single character in the list JFMASOND (case sensitive)
Match a single character present in the list below [a-z]{2}
{2} Quantifier — Matches exactly 2 times
a-z a single character in the range between a (index 97) and z (index 122) (case sensitive)
.* matches any character (except for line terminators)
* Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Positive Lookahead (?=\d{4})
Assert that the Regex below matches
\d{4} matches a digit (equal to [0-9])
{4} Quantifier — Matches exactly 4 times