简体   繁体   中英

Matching rest of string in perl-style regex

如何在perl风格的正则表达式(PCRE)中匹配“已知部分(未知单词)(字符串的其余部分)”的内容?

这样的事情应该做:

/^KNOWN PART (\w+) (.*)$/

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