类似于python
中有语法可标识原始字符串 而非转移字符
print r'\n'
直接打印 \n
为了解决此问题:c语言中使用正则表达式,没有原始字符表达 很不方便.
或者有没有什么其他替代的方案,谢谢
伊谢尔伦2017-04-17 14:39:02
It feels like it has nothing to do with regular expressions.
c
can completely meet your needs, just escape it.
#include <stdio.h>
int main() {
printf("\n");
return 0;
}