I have entered a pattern for a text data macro and the pattern field is not recognizing the regular expression.

  • 1
  • Problem
  • Updated 2 years ago

I have entered a regular expression in the pattern field  for a text data macro. The field is not recognizing the regexp I am able to enter anything in the field. I have even entered a minimal number of characters, and it is not recognizing that field either. Does he pattern field work? The field should be 1-2aaaaaa, and the regexp I am using is

/^\d-[a-zA-Z0-9]{6,7}$/i ; I have been able to add any combination in the field.    

Photo of Martrice Denson

Martrice Denson

  • 112 Posts
  • 1 Reply Like

Posted 2 years ago

  • 1
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Hello Martrice,

Can you provide us the version of Confluence and Scaffolding plugin you're having, for our checking?

Photo of Martrice Denson

Martrice Denson

  • 112 Posts
  • 1 Reply Like
confluence 5.8.18, reporting 6.3.1, scaffolding 8.2.2
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Martrice, 

The regular expression you shared is actually a string. 

You can go through this guide to have a better understanding about regex. 

It would be great if you clarify further on how you want your regex to be, I would be more than happy to assist you further. 

Thank you.