Regular expression to match all characters between <h1> tag
问题 I'm using sublime text 2 editor. I would like to use regex to match all character between all h1 tags. As of now i'm using like this <h1>.+</h1> Its working fine if the h1 tag doesn't have breaks. I mean for <h1>Hello this is a hedaer</h1> its working fine. But its not working if the tag look like this <h1> Hello this is a hedaer </h1> Can someone help me with the syntax? 回答1: By default . matches every character except new line character. In this case, you will need DOTALL option, which will