i would like to extract in this sentence many things with Regex :
[EXTIA][IDF-IT] Demande de contrat SST Julie PAOLUCCI Ayoub GHAMMOURI (GHAMMOURI AYOUB) @ENEDIS GTAR 06/05/2024
I would like to extract :
1°) [EXTIA][IDF-IT]
2°) Julie PAOLUCCI
3°) Ayoub GHAMMOURI
4°) ENEDIS
5°) 06/05/2024
All the words below can change from one email to another, so the variables must be “dynamic”.
Hi @Maxime_LAUGIER If the texts you would like to extract would be in same position and always separated by spaces, I think it would be easier to extract by splitting that sentence using space
Assign -> Input = "[EXTIA][IDF-IT] Demande de contrat SST Julie PAOLUCCI Ayoub GHAMMOURI (GHAMMOURI AYOUB) @ENEDIS GTAR 06/05/2024"
Find Matching Patterns activity
Pattern: "(\[[A-Z].*\])|((?<=[A-Z]+\s+)[A-Za-z]+\s+[A-Za-z]+)|((?<=\)\s+\@)[A-Z]+)|(\d+\/\d+\/\d+)"
Pattern Options: Compiled
Text to Search in: Input
Result: Matches
For Each currentMatch in Matches
Assign -> currentMatch.ToString
End For Each