I’ve an issue. How could I get these words in bold from this text below?
FullData = Nome Livro_Numero Livro_4.pdf|AA33|33|Nascimento|Planetario|Digitado|Numero ultima folha|2009|Ano final|Registros por folha|1|01
With this extracted data, I want to create a new variable to store it. I know I could use split or substring method, but I’m stucked on how could I use these “|” as markers. Like “the first data to get is 2 “|” from this position…”
Man, it’s great but I think it’s not gonna work cause some of those data, like the first one can get out of this pattern and come “AAAA456”, for example. What about substring or split method?
@Caio_Dultra
Yes, this would be the best to share all requirements, patterns with us. However feel free to play with the pattern on the regex101 website.
AAAA456 can be covered by tuning the occurences ([A-Z]{2,4}\d{2,4})|(\d{2,4})
@Caio_Dultra, If your format is fix then Split can be best fit in your case. Once you get string array you can access any element based using index. You can pick specific elements and concate as needed.
Now I’ve an issue. I saw that you used Add to Collection Activity but Matches Activity returns a collection too and you’ve also used regex. Can I use Matches without split method?
I dont get you, but if my xaml is running at your end you can decide which approach you want to use. I guess we have different approaches so 1 is not 100% compatible to the other. but can be adopted.