1 #include <stdio.h> 2 3 char haha[] = "nihaoma" 4 "niubi" 5 "\"hello world\n\""; 6 int main(void) 7 { 8 printf("%s\n", haha); 9 return 0; 10 }
匹配的正则表达式如下
(("(\\.|[^"])*")\s*)+
时间: 2024-11-29 11:50:25
1 #include <stdio.h> 2 3 char haha[] = "nihaoma" 4 "niubi" 5 "\"hello world\n\""; 6 int main(void) 7 { 8 printf("%s\n", haha); 9 return 0; 10 }
匹配的正则表达式如下
(("(\\.|[^"])*")\s*)+