keep getting the following error "is invalid. Syntax error at end of input."

L1 Bithead

keep getting the following error "is invalid. Syntax error at end of input."

Customer implementing the following Regex for Data Patterns and is getting syntax error.

(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01]\-(19|20)\d\d

Need help to get the correct regex pattern.

L5 Sessionator

Re: keep getting the following error "is invalid. Syntax error at end of input."

The syntax error is due to missing ')' right parenthesis.

The following pattern doesn't cause the syntax error, however, still hits the 7 bytes limitation.

(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])\-(19|20)\d\d

There should be a continuous 7 byte string.

Reference:

https://live.paloaltonetworks.com/message/46161#46161

- Yasu

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!