Hi,
Im just new to this language and I would like to know what does this groovy regular expression match too. I was not able to figure it by online articles.if some would would give an explanation i would greatly appreciate.
the 3 regular expressions are :
static propertyPattern = ~/@property\s([\w, =]+)\s(\w+)\s(*?)\w/
static methodPattern1 = ~/(-|+)\s(((?:const)?)\s(\w+)\s(<[\w\s,]+>)?\s(*?))\s(\w+)(:\s(((?:const)?)\s(\w+)\s(<[\w\s,]+>)?\s(*?))\s(\w+))?\s/
static methodPattern2 = ~/(\w+):\s(((?:const)?)\s(\w+)\s(<[\w\s,]+>)?\s(*?))\s(\w+)/
static methodPattern3 = ~/,\s(...)\s$/
thanks
appreicate a reply