<?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[How to bookmark lines with certain characters in certain positions]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/21260/how-to-delete-lines-with-missing-characters-in-certain-positions">How to delete lines with missing characters in certain positions</a></p>
<p dir="auto">Thanks to this group, I know how to bookmark and then delete lines with missing characters in certain positions.  Is there a way to bookmark lines that have certain characters in certain positions?  For example, I’m trying to bookmark all lines that have an N in position 39 and a D in position 40.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25552/how-to-bookmark-lines-with-certain-characters-in-certain-positions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 00:58:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25552.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Mar 2024 14:20:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to bookmark lines with certain characters in certain positions on Mon, 04 Mar 2024 17:06:40 GMT]]></title><description><![CDATA[<p dir="auto">Gotcha.  Thanks so much, that will really help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93397</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93397</guid><dc:creator><![CDATA[Brian Y.]]></dc:creator><pubDate>Mon, 04 Mar 2024 17:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to bookmark lines with certain characters in certain positions on Mon, 04 Mar 2024 16:13:24 GMT]]></title><description><![CDATA[<p dir="auto">@Brian-Y said in <a href="/post/93393">How to bookmark lines with certain characters in certain positions</a>:</p>
<blockquote>
<p dir="auto">that gives me anything that has an N in position 39. Is there a way to test both positions within the same formula? P</p>
</blockquote>
<p dir="auto">The regex I gave <em>does</em> only match if N is 39 <em>and</em> D in 40, as shown in this screenshot below.</p>
<p dir="auto"><img src="/assets/uploads/files/1709568757312-a5a7d6ae-63eb-475c-b570-8313e33ef3e5-image.png" alt="a5a7d6ae-63eb-475c-b570-8313e33ef3e5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93394</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93394</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 04 Mar 2024 16:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to bookmark lines with certain characters in certain positions on Mon, 04 Mar 2024 15:24:54 GMT]]></title><description><![CDATA[<p dir="auto">Ty for the quick reply…that gives me anything that has an N in position 39.  Is there a way to test both positions within the same formula?  Position 39 has to be N and Position 40 has to be D.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93393</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93393</guid><dc:creator><![CDATA[Brian Y.]]></dc:creator><pubDate>Mon, 04 Mar 2024 15:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to bookmark lines with certain characters in certain positions on Mon, 04 Mar 2024 14:39:20 GMT]]></title><description><![CDATA[<p dir="auto">@Brian-Y ,</p>
<p dir="auto">It’s the same idea as in the post you linked to.  The post you linked to wanted to find a space in the 18th character, so it looked for 17 of any character and then one space using <code>^.{18}\s</code></p>
<p dir="auto">You want <code>ND</code> in positions 39-40, so you want to look for 38 of any character followed by <code>ND</code>, thus <code>^.{38}ND</code></p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/22022/template-for-search-replace-questions">Template for Search/Replace Questions</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Formatting Forum Posts</a></li>
<li><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ Online User Manual: Searching/Regex</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find other regular expressions (regex) documentation</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/93392</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93392</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 04 Mar 2024 14:39:20 GMT</pubDate></item></channel></rss>