-1

I created the following regex to extract a messagge from an xml file but it apparently is not permitted. What would be an equivalent way to get the same result?

?<=Red(\s|\t|\n)+social:(\s|\t|\n)+[a-zA-Z]+(\s|\t|\n)+)(.|(\s|\t|\n)

Lugar y fecha: Guatemala, 01/04/2022 15:20 Usuario: map0002@usac.edu Red social: Facebook Hoy me inscribí en la USAC, no encontré parqueo e inicié molesto mi gestión, luego tuve que hacer cola y me indicaron que era la cola incorrecta, esto me enojó mucho y mejor me fui.

where i only need to get the following

Hoy me inscribí en la USAC, no encontré parqueo e inicié molesto mi gestión, luego tuve que hacer cola y me indicaron que era la cola incorrecta, esto me enojó mucho y mejor me fui.

Pablo
  • 1
  • Does the text always contains "Red social: network" and then the expected output? – lucas_7_94 May 08 '22 at 22:16
  • Yes, it is supposed to include a text message afterwards. The format is the following : Lugar y fecha: Country, Datetime Usuario: email Red social: Network Message.... – Pablo May 09 '22 at 03:27

0 Answers0