1

I have a list like this

<option value="01 Asad Gate Branch, Dhaka</option>
<option value="02 Graphics Building Br, Motijheel</option>
<option value="03 Mirpur Branch, Dhaka</option>
<option value="04 Uttara Branch, Dhaka</option>

want to make it like this in Notepad++ with regular expression find and replace.

<option value="01"> Asad Gate Branch, Dhaka</option>
<option value="02"> Graphics Building Br, Motijheel</option>
<option value="03"> Mirpur Branch, Dhaka</option>
<option value="04"> Uttara Branch, Dhaka</option>

want to replace the space after number with ">

4

2 回答 2

1

用作模式:

(<option value="[0-9]*) 

并替换为:

\1"> 
于 2013-10-04T10:02:23.827 回答
0

迟到:/
或尝试其中一种模式

模式:(="\d+)(value="\d+)(<option value="\d*)
替换:\1">


\d+ - 一位或多位数字
\d* - 0 位或多位数字

此模式已(="\d+)\s+替换为\1">不要使您的线路崩溃


例如:

<option value="01 Asad Gate Branch, Dhaka</option>
<option value="02"> Graphics Building Br, Motijheel</option>
<option value="03 Mirpur Branch, Dhaka</option>
<option value="04 Uttara Branch, Dhaka</option>

或者您可以
使用光标进行多行编辑以在数字后放置“空格”,
然后按 SHIFT + ALT 并向下光标(几次),然后自己键入“>”来添加

于 2013-10-04T11:20:02.730 回答