Anirban Sen Chowdhary Anirban Sen Chowdhary - 3 years ago 221
Java Question

Need a regex expression to validate timestamp with utc

I have a date format like :-


Now I want to have a regex expression that can validate this date format..

I tried with the following format as given here How to check an UTC formatted date with a regular expression? :-


but couldn't succeed ..
Since I am very new to this regex expression, I am finding it difficult to construct the expression that could validate successfully the above timestamp format with utc

Please note that, I want regex expression, other solution option will not work for me


Answer Source

You can use the following (the one you are using has different matching at the end):


Edit: In Java you can use the following:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download