11,572 questions
One of solutions:
string text = "PAX 134-4081897261/DTAV/COP65000/22DEC21/BOGAV08LK/76997561";
string result = Regex.Match( text, @"(?<=^([^/]*/){3})([^/]*)" ).Value;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone.
How can I get the highlighted text 22DEC21, I mean the fourth text between slashes with regular expressions?.
PAX 134-4081897261/DTAV/COP65000/22DEC21/BOGAV08LK/76997561
Thanks in advance.
One of solutions:
string text = "PAX 134-4081897261/DTAV/COP65000/22DEC21/BOGAV08LK/76997561";
string result = Regex.Match( text, @"(?<=^([^/]*/){3})([^/]*)" ).Value;