How to select a pattern without including a part of it?

Good night friends;

A question please, how could I capture what I have highlighted in yellow?


Terra 05 11:54 jun., p.m. R Transfer op 562.466.587.32 Cuenta de Cta. origen: Free ******2768 Monto enviado: 2.60 S/ Total cargado: 2.60 S/ Cuenta de destino: 143-3773021-85

(?<=Terra )[\d]+ ^(\d\d\:\d\d) (Ene|Feb|Mar|Abr|May|Jun|Jul|Ago|Set|Oct|Nov|Dic)


The above pattern seems not very good… Anyway, can you try the following?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Terra )(\d+) (?:\d\d\:\d\d) (Ene|Feb|Mar|Abr|May|Jun|Jul|Ago|Set|Oct|Nov|Dic)",System.Text.RegularExpressions.RegexOptions.IgnoreCase)

Sequence1.xaml (6.0 KB)


1 Like

Thank you very much @Yoichi :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.