<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[If more then 2 line match add match line in front with &#x2F;]]></title><description><![CDATA[<p dir="auto">Is there a way so i can run a command example.</p>
<p dir="auto">If more the 3-4 character match add NAME/ in front of x6128</p>
<p dir="auto">Orginal<br />
x6128k<br />
x6128m<br />
x6128c<br />
x6128m</p>
<p dir="auto">When done<br />
x6128/x6128k<br />
x6128/x6128m<br />
x6128/x6128c<br />
x6128/x6128m</p>
<p dir="auto">i have more then 14000 lines so that command will help a lot.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16227/if-more-then-2-line-match-add-match-line-in-front-with</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 09:14:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16227.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Aug 2018 09:49:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 19:56:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a></p>
<p dir="auto">It’s a lot of WORK, trying to be helpful!  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34379</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34379</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Mon, 27 Aug 2018 19:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 11:53:03 GMT]]></title><description><![CDATA[<p dir="auto">I took another look at your image. You did not follow my instructions. I said select ‘regular expression’ you did not do that. The regex I supplied needs that to work properly.</p>
<p dir="auto">Also in your example you should have changed the ‘k’ to ‘kr’ which was one you were looking for. Do a search on the web for ‘regex and alternation’, there are sites that will show good examples.</p>
<p dir="auto">It’s good you are trying, you just need to follow instructions a bit better.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34369</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34369</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 27 Aug 2018 11:53:03 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 11:24:51 GMT]]></title><description><![CDATA[<p dir="auto">Cant make it work even with replace all, just for make a better example what i have to do here is a list of printer ink, and all with a <strong>/</strong> have been manuel changes, and the command have to do the same job. and thanks for trying to help me :)</p>
<p dir="auto">the name is the printer same and the / in the ink types for that printer, just so you know what i am doing :)</p>
<p dir="auto">m775/m775k-n<br />
m775/m775m-n<br />
m775/m775c-n<br />
m775/m775y-n<br />
859001<br />
c410<br />
801000<br />
8009/800980<br />
8009/800990<br />
8009/800970<br />
h5949xcu<br />
o5100/o5100xk<br />
o5100/o5100xm<br />
o5100/o5100xc<br />
o5100/o5100xy<br />
tk150/tk150k-ntr<br />
tk150/tk150m-ntr<br />
tk150/tk150c-ntr<br />
tk150/tk150y-ntr<br />
s205xc<br />
s205xxc<br />
l644xcr<br />
atepc1100/atepc1100-b-cw<br />
atepc1100/atepc1100-m-cw<br />
atepc1100/atepc1100-c-cw<br />
atepc1100/atepc1100-y-cw<br />
o130/o130xbr<br />
o130/o130xmr<br />
o130/o130xcr<br />
o130/o130xyr<br />
h972/h9720kr<br />
h972/h9723mr<br />
h972/h9721cr<br />
h972/h9722ymr<br />
h267/h2670kr<br />
h267/h2673mr<br />
h267/h2671cr<br />
h267/h2672yr<br />
x3210xc<br />
h268/h2683mr<br />
h268/h2681cr<br />
h268/h2682yr<br />
r3400xxc<br />
s2850xc<br />
k1140c<br />
hf226/hf226x<br />
hf226/hf226a<br />
hf226/hf226a<br />
c524/c524k<br />
c524/c524m<br />
c524/c524c-ntr<br />
c524/c524y<br />
c522/c522k<br />
c522/c522m<br />
c522/c522c<br />
c522/c522y<br />
835601<br />
atnmc20/atnmc20-b-eu-cw<br />
atnmc20/atnmc20-m-eu-cw<br />
atnmc20/atnmc20-c-eu-cw<br />
atnmc20/atnmc20-y-eu-cw<br />
h53/h530k<br />
h53/h533m<br />
h53/h531c<br />
h53/h532y<br />
hf287/hf287x<br />
hf287/hf287a<br />
r1000c<br />
l240<br />
l340xc<br />
<a href="http://atmitk340.cw" rel="nofollow ugc">atmitk340.cw</a><br />
mlt-d305l/els<br />
x6128/x6128k<br />
x6128/x6128m<br />
x6128/x6128c<br />
x6128/x6128m<br />
k340c<br />
cep26u<br />
atokes3640a/atokes3640a-b-eu-cw<br />
atokes3640a/atokes3640a-m-eu-cw<br />
atokes3640a/atokes3640a–eu-cw<br />
atxe6350/atxe6350-B<br />
atxe6350/atxe6350-m<br />
ayut3012k-cw<br />
h38/h380xk<br />
h38/h383mr<br />
h38/h381cr<br />
h38/h382yr<br />
e6200xc<br />
dr6200-ntr<br />
sr407<br />
s4072/s4072k<br />
s4072/s4072m<br />
s4072/s4072c<br />
s4072/s4072y<br />
h973/h9730kr<br />
h973/h9733mr<br />
h973/h9731cr<br />
h9732yr<br />
c039x<br />
m880/m880k-ntr<br />
m880/m880m-ntr<br />
m880/m880m-ntr<br />
m880/m880y-ntr<br />
s5082/s5082xk<br />
s5082/s5082xm<br />
s5082/s5082xc<br />
s5082/s5082xy<br />
h32/h320br<br />
h32/h323mr<br />
h32/h321cr<br />
h32/h322y<br />
o431xc<br />
o411ac<br />
drb431-ntr<br />
atolp2026/atolp2026bx-cw<br />
atolp2026/atolp2026mx-cw<br />
atolp2026/atolp2026cx-cw<br />
atolp2026/atolp2026yx-cw<br />
tk55-ntr<br />
h41/h410xkr<br />
h41/h413mr<br />
h41/h411cr<br />
h41/h412yr<br />
h280ac<br />
h280xc<br />
k100u<br />
tk17-xl-ntr<br />
h255/h255xc<br />
h255/h255ac<br />
06a-ntr fx3<br />
b33/b3330<br />
b33/b3380<br />
b33/b3390<br />
bd3300<br />
fbrl-c746/fbrl-c746k<br />
fbrl-c746/fbrl-c746m<br />
fbrl-c746/fbrl-c746c<br />
fbrl-c746/fbrl-c746y<br />
s560rc<br />
atutp3065/atutp3065bx-cw<br />
atutp3065/atutp3065mx-cw<br />
atutp3065/atutp3065cx-cw<br />
atutp3065/atutp3065yx-cw<br />
tk725-ntr<br />
14a-ly-ntr<br />
hf214x<br />
xe-7100/xe-7100bk-c<br />
x7100/x7100k-2-ntr<br />
xe-7100/xe-7100m-c<br />
x7100/x7100m-2-ntr<br />
xe-7100/xe-7100c-c<br />
x7100/x7100c-2-ntr<br />
xe-7100/xe-7100y-c<br />
x7100/x7100-2-ntr<br />
h390xc<br />
rbrh-q5950/q6460<br />
h390ac<br />
hcf470/hcf470xk<br />
hcf470/hcf470xm<br />
hcf470/hcf470xc<br />
hcf470/hcf470xy<br />
atut3228kx-cw<br />
frbe-c3800/frbe-c3800m<br />
frbe-c3800/frbe-c3800m<br />
frbe-c3800/frbe-c3800c<br />
frbe-c3800/frbe-c3800y<br />
h600/h6000kr<br />
h600/h6003mr<br />
h600/h6001cr<br />
h600/h6002yr<br />
hcf450/hcf450ak<br />
hcf450/hcf450am<br />
hcf450/hcf450ac<br />
hcf450/hcf450ay<br />
s504/s504b<br />
s504/s504m<br />
s504/s504c<br />
s504/s504y<br />
tk440-ntr<br />
c510/c510B-hy-ntr<br />
c510/c510m-hy-ntr<br />
c510/c510c-hy-ntr<br />
c510/c510y-hy-ntr<br />
b2010<br />
h27/h270k<br />
h27/h273m<br />
h27/h271c<br />
h27/h272y<br />
o530/o530xk<br />
o530/o530xm<br />
o530/o530xc<br />
o530/o530xy<br />
o310/o310ak<br />
o310/o310am<br />
o310/o310ac<br />
o310/o310ay</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34368</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34368</guid><dc:creator><![CDATA[Casper Rasmussen]]></dc:creator><pubDate>Mon, 27 Aug 2018 11:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 11:15:51 GMT]]></title><description><![CDATA[<p dir="auto">It looks like you pushed find, if so, it did exactly that. What you need to push is the replace button. If the first and possibly a few other hits of the replace button seem to be doing the job hit the replace all button. If will read the rest of the file and change all remaining occurances that fit.</p>
<p dir="auto">Did you try my regex first and check what that looked like when doing 1 change at a time?</p>
<p dir="auto">Just remember if at all unhappy with the changes either undo them all or don’t save the file when exiting. Also consider having a backup of the file before making any changes.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34367</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34367</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 27 Aug 2018 11:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 10:58:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a> said:</p>
<blockquote>
<p dir="auto">\1/\1\2\3</p>
</blockquote>
<p dir="auto">dont think i am doing it right<br />
se picture link<br />
<a href="https://i.imgur.com/KZOMXSO.png" rel="nofollow ugc">https://i.imgur.com/KZOMXSO.png</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/34366</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34366</guid><dc:creator><![CDATA[Casper Rasmussen]]></dc:creator><pubDate>Mon, 27 Aug 2018 10:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 10:46:10 GMT]]></title><description><![CDATA[<p dir="auto">Well hopefully you can make other regexs using mine as a template. The regex I supplied is fairly simple to understand, the most complicated part is what we call alternation. That’s the 2nd last bracket. Thats where options exist, it has to be one of those character sets. Although I only have 1 character in each, you can have longer strings, I see one of the examples had 2 characters.</p>
<p dir="auto">Try and give it a go using my regex. We like people to at least try. If you can’t get it to work show us what you have tried.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34365</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34365</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 27 Aug 2018 10:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 10:31:38 GMT]]></title><description><![CDATA[<p dir="auto">it’s more complicated then that here is a line with more examples, i add a star of lines i have to ***/ add line in front</p>
<p dir="auto">tk895kr<br />
tk895m<br />
tk895c<br />
tk895y<br />
<em><strong>becomes</strong><br />
tk895/tk895kr<br />
tk895/tk895m<br />
tk895/tk895c<br />
tk895/tk895y<br />
atmi5205be<br />
tk-5105m<br />
atmi5205ce<br />
atmi5205ye<br />
<em><strong>becomes</strong><br />
atmi5205/atmi5205ce<br />
atmi5205/atmi5205ye<br />
k475c<br />
s307ac<br />
x3150xc<br />
h310kr<br />
h313mr<br />
h311cr<br />
h312yr<br />
<strong>Becoms</strong></em><br />
h31/h310kr<br />
h31/h313mr<br />
h31/h311cr<br />
h31/h312yr<br />
<strong>becoms</strong></em><br />
h310/h310kr<br />
h310/h313mr<br />
h310/h311cr</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34364</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34364</guid><dc:creator><![CDATA[Casper Rasmussen]]></dc:creator><pubDate>Mon, 27 Aug 2018 10:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to If more then 2 line match add match line in front with &#x2F; on Mon, 27 Aug 2018 10:21:53 GMT]]></title><description><![CDATA[<p dir="auto">I hope I have read your question well enough to provide a solution. Please let me know if it needs adjustment due to something not shown in the example.</p>
<p dir="auto">Find What: <code>^(x6128)(k|m|c)(\R?)</code><br />
Replace with: <code>\1/\1\2\3</code></p>
<p dir="auto">This is a ‘regular expression’, so in the Replace option in Notepad++ copy the red text into each of the 2 fields. Have the wrap around window ticked and regular expression selected, nothing else. If at all unsure of what it will do, run it by clicking the ‘Replace’ button, not the replace all. Once you are comfortable with it you could select the ‘Replace All’ button. My ‘regex’ assumes a carriage return/line feed is immediately behind the text. If this is not the case you will need to provide a more accurate example.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34363</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34363</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 27 Aug 2018 10:21:53 GMT</pubDate></item></channel></rss>