Regex: text between first occurrence of two patterns

前端 未结 4 492
渐次进展
渐次进展 2021-01-13 23:34

/url?q=http://it.wikipedia.org/wiki/Spider-Man_(film)&sa=U&ei=iavVUKuFGsrNswbz74GQBA&ved=0CBYQFjAA&usg=AFQjCNEth5YspFPWp6CInyAfknlEvVgIfA

4条回答
  •  没有蜡笔的小新
    2021-01-14 00:24

    You just need to make the * operator lazy, and you do it by adding a ? after it. So it would be .*?

    Lazy (or non greedy) means that will stop after the first occurrence of that match, instead of the last one.

提交回复
热议问题