Regex to extract only beginning of the line


Hello everyone!

Can you help me with an regex that will select only the green marked string.
I want to delete it so the line can start with Nov.

Thank you!

Hi @Andrei_Croitoru

If possible can you send the text file

Regards
Sudharsan

Hi @Andrei_Croitoru

Try with this regex

Regards
Sudharsan

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Replace(yourString,".*(?=Nov)","")

or

System.Text.RegularExpressions.Regex.Replace(yourString,".*(?=(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec))","")

Regards,