regex accept nine digits and accepts more then 1 number

I need a regex/a solution for a field which accepts only 9 digits and should accept more than one number are separated by semicolon 

Eg: 123456789;012365478;987456321

 I could do only 1 with this expression {0-9]{9} as setting this in condition

This would a great help

1 answer

This widget could not be displayed.

Hi Shashi,

I'm a bit unclear on what exactly you're looking for but from the description I believe you're looking for an expression to validate there's only 9 characters one that will take multiple inputs separated by semicolon.  The following should do it:

 

[0-9]{9}+(;[0-9]{9}+)*

The first part is the first match and then it matches semicolon-number string and repeats.

Cheers,

Branden

 

Thanks for response @Branden McElveen though I was unclear. you have got what I needed..will try this and let you know...

Thanks once again
Shashi

Shashi

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,073 views 5 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you