Jump to content
Tuts 4 You

need help on this regex pattern


abbas

Recommended Posts

tried some online services saying wrong format blah blah...

 

Spoiler

^"\/Date\((?<ticks>-?[0-9]+)(?:[a-zA-Z]|(?:\+|-)[0-9]{4})?\)\/"

 

Edited by abbas
Link to comment

 

On 8/20/2019 at 12:22 AM, abbas said:

tried some online services saying wrong format blah blah...

You can try modofied RegEx (compatible with javascript)
 

^"\/Date\((-?[0-9]+)(?:[a-zA-Z]|(?:\+|-)[0-9]{4})?\)\/"

Matching:

"/Date(-01234567890A)/"

^"\/Date\((-?[0-9]+)(?:[a-zA-Z] | (?:\+|-)[0-9]{4})?\)\/"


or "|" Matching alternative:

"/Date(-0123456789-1234)/

"/Date(-0123456789+1234)/

 

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...