Hmmmm this is a tough one, not because of the beginning of the string, but the end of the string.
In order to get the string, you could use an OR statement to specify PEDIDO: OR Pedido: OR Ped: but the variable holding the string would have to know where to end… but I’m guessing since your documents are coming from all different sources, it isn’t standardized what comes ‘after’…
For this solution, I didn’t really use any resource, so over time I just kind of remember a few useful tricks and double check the solution using a Write Line or MsgBox. Before that, I would “Google” how to do a certain thing in Regex .net.
The non-greedy ‘?’ on .+? or .*? was a recent thing I learned.
The RegexOptions such as IgnoreCase is actually a part of the syntax if you look inside UiPath with the rollover popup message while typing it out and is optional.
The look behind and look ahead is something (if I can’t remember) which is easily googled.