相关疑难解决方法(0)

正则表达式在第一场比赛时停止

我的正则表达式看起来像

<xxxx location="file path/level1/level2" xxxx some="xxx">
Run Code Online (Sandbox Code Playgroud)

我只对分配给位置的报价部分感兴趣.如果没有贪婪的开关,它不应该像下面那么容易吗?

/.*location="(.*)".*/
Run Code Online (Sandbox Code Playgroud)

似乎没有用.

regex

489
推荐指数
6
解决办法
54万
查看次数

标签 统计

regex ×1