Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在正则表达式上使用修饰符?喜欢:
m/some.*title/i ==> tag...
是的:arbtt使用与 perl 兼容的正则表达式,它们允许您在模式内设置修饰符:
arbtt
m/(?i)some.*title/ ==> tag...
有关详细信息,请参阅https://www.pcre.org/original/doc/html/pcrepattern.html#SEC13 。