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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -