Regular expression : Uppercase and number

Bastien Delourmel
Contributor
September 20, 2023

Good morning, 

 

I am looking for a regular expression that obliges users to set the good format for a field (e.g shipping number), thanks to a validator.

The format that we need is Upper case + numbers as:

- OALC65AS

- 87QLS6LA2

- QLOS65

You can see that there is no order regarding number/letter

 

We just don't want that:

- as6fg6e5

- s654f6

- 98sd6f3

 

Spoiler alert, I tried:

^[A-Z0-9]+$

- [A-Z0-9]+

[A-Z0-9]*

 

Thanks for your return

1 answer

1 accepted

0 votes
Answer accepted
Riley Sullivan
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.
September 22, 2023

Hello @Bastien Delourmel 

 

Interesting, would you be able to provide screenshots?

 

I just tried ^[A-Z0-9]+$ and it worked for me!

Screenshot 2023-09-22 at 11.23.41 AM.png

Bastien Delourmel
Contributor
September 26, 2023

Well, don't know what did I do this day.. thanks. In fact it worked

Like Riley Sullivan likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events