阅读背景:

PHP正则表达式模式匹配魔术搜索关键字

来源:互联网 

Ok regex experts. I'm having a ton of trouble trying to make a regex pattern for my needs. The goal: Take a search query such as "good food type:post format:gallery" and parse the type or format or both from the string. This is what I wrote, but doesnt work unless both type and format are present and type comes before format. Ideally, either type or format could be present.Ok regex experts. I'm having a ton of trouble t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: