public static String find ( CharSequence self , CharSequence regex , @ ClosureParams ( value = SimpleType . class , options = "java.lang.String[]" ) Closure closure ) { return find ( self . toString ( ) , Pattern . compile ( regex . toString ( ) ) , closure ) ; }
Returns the result of calling a closure with the first occurrence of a regular expression found within a CharSequence . If the regex doesn t match the closure will not be called and find will return null .