In perl regex we can extract the matched variables, ex below.
# extract hours, minutes, seconds
$time =~ /(\\d\\d):(\\d\\d):(\\d\\d)/; # match hh:mm
The simpler solution
In the TOOLS section click on code generation
This is an example of what I got.
$re = '/\#.*@hello\((?\w+),?(?.*)\).*/m';
$str = ' Testing string
# @hello(group_fields)
# @hello(operator, arguments, more arguments)';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);