6
In the text below, I would like a regular Pattern Expression, compatible with VBA, to extract the text located between the equal sign "=" and the first line break (highlighted in bold):
Client = CON CLIENTE ABCD
Rule = Allocation in committed Limit - Min. R$ 0 - ( 0,00% ) - Max. R$ 0 - ( 0,00% ) Base Value - R$ 0,00 Financial Calculated Value - R$ 0,00 - ( 0,00% )
and customers repeat themselves or not? I can’t understand the question like this, it’s too wide.
– Guilherme Nascimento
Client = s+?(.*?) s+? n
– Wilson Faustino
Which Office program is being used in VBA?
– danieltakeshi
With a test in Excel this was the expression used in which it was possible to extract the data in bold:
(?:Cliente =\s+?)(.*?)\s+?(?:Regra.+$)
and the regex test. WithCliente =\s+?(.*?)\s+?\n
It seems that Excel does not recognize the\n
new line.– danieltakeshi
@Guilhermenascimento, customers do not repeat themselves.
– dos Santos
@dosSantos I refer to "key", I mean is a customer only or multiple customers?
– Guilherme Nascimento