I need help getting create a variable using REGEX.
I need to get the two characters that come after the text “Estado :”, but in the body of my text it appears 3 times “Estado :”
How do I get the second or third value? Sample text:
Bairro : Vila Maria Baixa Cidade : São Paulo Estado : SP Cep : 02117-000
Est. Civil : Solteiro(a) Nat. : IBIRA Estado : RJ Nacionalidade : Brasileira
Endereço : AV ANTENOR NAVARRO Nº : 1067 Compl. :
Bairro : JARDIM BRASIL Cidade : SÃO PAULO Estado : PR Cep : 02224-001
I tried this REGEX but it only returns the first result