Hi!
You can first split the string by '-' character, so you will have "REG20140509" and store into a String variable (let's say date).
After that you can apply a regexp over this string. Use "\\w"...