Regex for product key

Posted by Poppy on Stack Overflow See other posts from Stack Overflow or by Poppy
Published on 2010-03-11T20:15:50Z Indexed on 2010/03/11 20:19 UTC
Read the original article Hit count: 332

Filed under:

Hi i'm trying to do a regex that will show all product keys with the value #####-#####-#####-#####-#####

this is the regular expression i have created

[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}

for some reason it just isn't working.

Any help?

© Stack Overflow or respective owner

Related posts about regex