How to write a regular expression if you want to get a string of getcolsum (xxx) in a string?

java wrote a rule himself. You can"t verify a character such as three arbitrary characters, (xx) at the beginning of getcol.

    String str = "798>getcolsum(fmoney)>getcolavg(fmoney)";
    String pattern = "getcol[\\w]{3}\\([\\w.]*\\)";

    Pattern r = Pattern.compile(pattern);
    Matcher m = r.matcher(str);
    System.out.println(m.matches());
How should I write this expression?


 String str = "798>getcolsum(fmoney)>getcolavg(fmoney)";
            String pattern = "getcol\\w{3}\\([\\w.]*\\)";
            Matcher m  = Pattern.compile(pattern).matcher(str);
            List<String> result=new ArrayList<String>();
            while(m.find()){
                result.add(m.group());
            }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3532a-2acbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3532a-2acbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?