简体   繁体   中英

What is the use of “~” mark in the Perl regular expression?

I'm using boost library for regular expression in C++. What is the use of ~ mark in the Perl regular expression?

What does it denote? eg

~myName 

or

ab~dc

这是一个正常字符,逐字匹配,没有特殊含义。

AFAIK〜在perl正则表达式中没有特殊作用,因此〜myName实际上是“〜myName”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM