How to match a part of an <iframe> tag?

后端 未结 6 2104
小鲜肉
小鲜肉 2021-01-21 13:48

I\'m trying to match the highlighted parts of this string:

 maybe something here src=\"http://some.random.url.com/\" and the string continues.         


        
6条回答
  •  忘掉有多难
    2021-01-21 14:03

    see RegEx match open tags except XHTML self-contained tags

    That said, your particular situation isn't really parsing... just string matching. Methods for that have already been enumerated before my answer here...

提交回复
热议问题