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"...
Type: Posts; User: danieland
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"...
Hi. You are getting errors because you have a return statement in the constructor.
If you remove the return it should be ok.
PS: In future, add a private identifier to your instance variables.