1.使用q auto str = q{ @property auto front() { return _captures; } }; 2.使用`符号 auto str = `\w+`; 转载于:https://www.cnblogs.com/wanhongnan/p/5731362.html