Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Regex Pattern Help - Create specific pattern

Kerri Queton January 27, 2023

Hello Community,

 

I am using Proforma and the link to regex examples is leading to a 404 page.

So I require assistance (if possible) to translate a need to a pattern for regex.

 

User must enter the following into the field

two characters then a number between 100 to 200

Ex. IE100 or AB200

 

Thank you for your time in reading this

2 answers

1 accepted

0 votes
Answer accepted
Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2023

Hi @Kerri Queton

Can you try this regex pattern:

[A-Z]{2}[100-200]{3}

Thanks,
Vamsi

Kerri Queton January 30, 2023

Thanks, and if i want to do the opposite affect. 

Ex. if a user enters aa100 or aa200 then error out. Anything else is acceptable

OR

if count = 5 and ends in "100" or "200" then no

Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2023

Hi @Kerri Queton

Can you try this?

^[A-Z]{2}(?!(?:100|200)$){3}\d+

This will check and give error if the value is ending with 100 or 200.

Hope this helps.

Thanks,
Vamsi

Kerri Queton January 30, 2023

Worked like a charm, thank you very much!

0 votes
RUBEL BARUA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2023

I can make garment pattern 

The software name is Gerber Accumark

Vresion is 12.2.0.252

I am working as a pattern Maker in Bangladesh garment. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events