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