Jump to content
Tuts 4 You
Sign in to follow this  
abbas

need help on this regex pattern

Recommended Posts

abbas
Posted (edited)

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

 

Spoiler

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

 

Edited by abbas (see edit history)

Share this post


Link to post
AvaTar MaDara

try this

 

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

Share this post


Link to post
whoknows

not tried^ , explaination : unescape ?

 

spacer.png

Share this post


Link to post
Insid3Code

 

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

Share this post


Link to post

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
Sign in to follow this  
×
×
  • Create New...