开发者

A simple regex expression

im开发者_开发技巧 having a little difficulty in making a regex that will filter an input for me.

if i get a lot of: <option value=1234>text</option><option value=5678>text2</option> (note that the number is always 4 digits) and i want the regex to filter the text for me, so i'll have a list of "text\ntext2" etc, what regex expression do i have to use? im kind of new to regex and i cant figure it out by myself..

thanks in advance!


Something like this:

<option value=\d+>([\w\s\\]+)</option>


I assume you want to search replace within notepad++.

Search for

<option value=\d+>(.*?)</option>

and replace with

\1\n
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜