Find everything between two XML tags with RegEx

前端 未结 5 1377
无人及你
无人及你 2020-11-27 13:02

In RegEx, I want to find the tag and everything between two XML tags, like the following:


    

        
5条回答
  •  -上瘾入骨i
    2020-11-27 14:06

    You should be able to match it with: /(.+?)<\/primaryAddress>/

    The content between the tags will be in the matched group.

提交回复
热议问题