I’m singing while you are dancing.
dancing ,sing a song.ing.singed a song.danced a long.
time.danceabsd.cn
匹配上面文字中以danc开头,中间不包括ing,后面有字符d的单词
答案:\bdanc(?!ing)\w*?d\w*\b
标签:col 断言 str 零宽断言 文字 a long span time post
I’m singing while you are dancing.
dancing ,sing a song.ing.singed a song.danced a long.
time.danceabsd.cn
匹配上面文字中以danc开头,中间不包括ing,后面有字符d的单词
答案:\bdanc(?!ing)\w*?d\w*\b
标签:col 断言 str 零宽断言 文字 a long span time post
原文地址:http://www.cnblogs.com/yahutiaotiao/p/8030284.html