comma delimited regular expression

  • Thread starter gimme_this_gimme_that
  • Start date
G

gimme_this_gimme_that

What would be the regular expression that would match a comma delimited
string having no trailing comma

"AABBB01,cccddd01,DDDFFF01"

and confirm that it consists of comma delimited values of "\w{6}\d{2}"
?

Thanks.
 
S

shakah

What would be the regular expression that would match a comma delimited
string having no trailing comma

"AABBB01,cccddd01,DDDFFF01"

and confirm that it consists of comma delimited values of "\w{6}\d{2}"
?

Something like:

'^\w{6}\d{2}(,\w{6}\d{2})*$'

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top