Jump to content
Tuts 4 You

need help on this regex pattern


abbas

Recommended Posts

Posted (edited)

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

 

  Reveal hidden contents

 

Edited by abbas
AvaTar MaDara
Posted

try this

 

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

Posted

not tried^ , explaination : unescape ?

 

spacer.png

Posted

 

  On 8/19/2019 at 10:22 PM, abbas said:

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

Expand  

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

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...