20

记一次面试题,正则表达式(?=a)是什么意思?

 4 years ago
source link: https://juejin.im/post/5ceb7d9df265da1b8811ba7f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 不久前出去面试了一下,被问到了一个问题: 正则表达式 (?=a) 表示什么意思? 嗯,我花了几秒钟从脑子中检索答案,然后发现对于正则表达式方面的知识有许多地方记不清了! so,我的回答是: 我只知道 ? 号是最少匹配前面一次的意思,加个 = 号就不太

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK