RegEx Groovy for assertion -


this question has answer here:

can regular expression following (only alphanumeric upper , lower case - after 12 characters) need use in in groovy assertion.

7aynehfjeee4-ajixjp2jg 

assert '7aynehfjeee4-ajixjp2jg' =~ /^[a-za-z0-9]{12}-[a-za-z0-9]{9}$/ 

Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -