<?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[Editing in Notepad++]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">how we can insert single quotes in a perticular  word</p>
<p dir="auto">EXample</p>
<p dir="auto">input-- Adelanto 15515 361 363<br />
output-- ‘Adelanto’ 15515 361 363</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16910/editing-in-notepad</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 16:52:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16910.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jan 2019 20:58:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 21:15:38 GMT]]></title><description><![CDATA[<p dir="auto">You’re welcome, <a class="plugin-mentions-user plugin-mentions-a" href="/user/inshita-rawat" aria-label="Profile: Inshita-Rawat">@<bdi>Inshita-Rawat</bdi></a>.  If you follow the links in the <a href="https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation" rel="nofollow ugc">FAQ</a>, especially to one of the try-it-live websites, like <a href="http://regexr.com" rel="nofollow ugc">regexr.com</a> (*), they will explain the individual elements of the regular expression in great detail.</p>
<p dir="auto">*: I usually use regexr, and switch it from “JAVASCRIPT” to “PCRE” in the upper right.  PCRE comes come close to Notepad++'s Boost-based regular expressions — since both Boost<a href="https://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_perl.html" rel="nofollow ugc">↗</a> and PCRE<a href="https://www.pcre.org/" rel="nofollow ugc">↗</a> are based on Perl regular expressions, though there are differences (both from each other, and from Perl).</p>
<p dir="auto">If you paste my <code>^(.*?) (\d.*)</code> regular expression into <a href="http://regexr.com" rel="nofollow ugc">regexr.com</a> with PCRE,  and FLAGS=global,multiline (<code>/gm</code>), along with example data – see <a href="https://regexr.com/466oe" rel="nofollow ugc">https://regexr.com/466oe</a> – you can see the explanation, or by clicking on REPLACE, you can input my replace string, and see what it will become.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38298</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38298</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 10 Jan 2019 21:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 20:48:19 GMT]]></title><description><![CDATA[<p dir="auto">thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-jones" aria-label="Profile: Peter-Jones">@<bdi>Peter-Jones</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> for explaining me of each  code in notepad++  in a clear way as it is really difficult o find explanation of codes in internet which can help in making codes of problems.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38294</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38294</guid><dc:creator><![CDATA[Inshita Rawat]]></dc:creator><pubDate>Thu, 10 Jan 2019 20:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 20:25:45 GMT]]></title><description><![CDATA[<p dir="auto">If you want to learn the code, read the resources I linked to above.  If you want our help, please format your data, as I linked above.  Show some effort, and we’ll be quite willing to help.</p>
<p dir="auto">If you had told us that “Adelanto” was not the exact text you were looking for, but rather any text before some number or sequence of numbers, then we could have crafted the right regex from the beginning.</p>
<p dir="auto">Assuming your rule is “find a line that has text, followed by a space, followed by any combination of numbers and spaces, I want to grab the text before the numbers, and put single-quotes around them”</p>
<pre><code class="language-z">Adelanto 155515 361 363
Anaheim 155222 123 456
Agoura Hills 15999 876
Apple Valley 158888
</code></pre>
<ul>
<li>Find What = <code>^(.*?) ([\d\h]+)</code></li>
<li>Replace = <code>'$1' $2</code></li>
<li>mode = regular expression</li>
</ul>
<p dir="auto">will result in</p>
<pre><code class="language-z">'Adelanto' 155515 361 363
'Anaheim' 155222 123 456
'Agoura Hills' 15999 876
'Apple Valley' 158888
</code></pre>
<p dir="auto">The full explanation can be found in the FAQ I already linked, but in short:</p>
<ul>
<li>Find What = <code>^(.*?) ([\d\h]+)</code>
<ul>
<li><code>^</code> = match beginning of line</li>
<li><code>()</code> = put what’s inside into a numbered match: there will be two numbered matches, based on the two pairs of parentheses in the regex</li>
<li><code>.</code> = match any character</li>
<li><code>.*</code> = match any character, zero or more times</li>
<li><code>.*?</code> = match any character, zero or more times, non-greedily – this will gobble up all the text at the beginning of the line that isn’t explicitly matched later in the regex</li>
<li>the space between the sets of parens <code>() ()</code> is a literal space</li>
<li><code>[]</code> = match any single character listed inside the brackets</li>
<li><code>\d</code> = match any digit (0-9)</li>
<li><code>\h</code> = match any horizontal space (space or tab character)</li>
<li>thus, <code>[\d\h]</code> = match any of the numbers or spaces mentioned</li>
<li><code>+</code> = do the previous match one or more times.</li>
<li><code>[\d\h]+</code> = match any sequence of one or more digits or spaces</li>
<li><code>$</code> = match the end of the line</li>
</ul>
</li>
<li>Replace = <code>'$1' $2</code>
<ul>
<li>replace the above with the first numbered match in single quotes, space, and the second numbered match</li>
</ul>
</li>
</ul>
<p dir="auto">So the full regular expression says “grab everything up to the first space that’s followed by one or more digits or spaces resulting in end of line, into two groups”, and the replace will put quotes around the first group.</p>
<p dir="auto">This won’t match on data like</p>
<pre><code class="language-z">Some Text Here 555 123 4567 xyz
</code></pre>
<p dir="auto">because  the <code>xyz</code> is not composed of only numbers and spaces.<br />
If you want to be able to match this too, then the rule would be “match start of line and a bunch of characters, stopping at the first digit after a space, and put the beginning text into quotes”, it could be done with <code>^(.*?) (\d.*)$</code>.  Or, if you took the <code>$</code> away from my first regex =&gt; <code>^(.*?) ([\d\h]+)</code>, then it just won’t require an end-of-line immediately after the numbers-and-spaces, so any other text is allowed there, too.</p>
<p dir="auto">There are lots of other ways to accomplish it, too.</p>
<p dir="auto">Study the documents I linked.</p>
<p dir="auto">(Ah, <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> did a great explanation of the existing regexes, which I saw just before hitting submit.  Since I already typed this up, and since this goes into details on how to change it based on your changing data requirements, I will still post.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38286</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38286</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 10 Jan 2019 20:25:45 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 20:11:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/inshita-rawat" aria-label="Profile: Inshita-Rawat">@<bdi>Inshita-Rawat</bdi></a></p>
<p dir="auto">as <a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-jones" aria-label="Profile: Peter-Jones">@<bdi>Peter-Jones</bdi></a> mentioned, you only have to replace Adelanto in<br />
find what: <code>^(.*?)(Adelanto)(.*?)$</code> to the text you need for the second pass, so that it will look like this<br />
find what: <code>^(.*?)(Adelanto Hill)(.*?)$</code><br />
and replace with: $1’$2’$3</p>
<p dir="auto">little explanation:<br />
<code>^</code> this is the symbol for regex (regular expression) to tell it that all following parameters assume that it has to start at the beginning of a line</p>
<p dir="auto"><code>(.*?)</code> tells regex that all characters found after the beginning of the line and before any other  will be saved to $1.<br />
the () brackets will create a string buffer (a place to store a section of text or numbers) and store its containing or found value or string as string 1, which can later be accessed by either using $1 or \1.<br />
.*? is the symbol combination for “ungreedy anything” to make sure the string can match anything, regardless of it is a number, a special character except a line ending, a letter or any combination of those.</p>
<p dir="auto"><code>(Adelanto Hill)</code> is the string you are searching for. the brackets again create a new string buffer that can be accessed later by writing $2 in your replace field</p>
<p dir="auto">next but almost invisible <code> </code> comes a single space, which marks that after Adelanto Hill there has to be a space between the text you are searching for and the beginning of the number.</p>
<p dir="auto"><code>(.*?)</code> again tells regex that all characters found after the beginning of the line and before any other  will be saved to a new string buffer, $3.</p>
<p dir="auto"><code>$</code> is the symbol for regex to stop the previous commands (expressions) once an end of a line has been found, so that it will reset it’s buffers and discontinue the search if you press replace once. this allows regex to handle every line by line, instead of the whole document.</p>
<p dir="auto">the replace with sequence: $1’$2’$3 then just takes the 3 string buffers and put them together with a ’ as separator</p>
<p dir="auto">for a more detailed information and a more sophisticated regex search, that could for example enquote any text before a number under more complex circumstances, we will need the help of for example our regex guru <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> as i am only “first level” regarding regex ;-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38284</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38284</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Thu, 10 Jan 2019 20:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 19:45:29 GMT]]></title><description><![CDATA[<p dir="auto">In the whole data set i have few words like<br />
Adelanto 155533<br />
Anaheim 155222<br />
Agoura Hills 15999<br />
Apple Valley 158888…<br />
so i cannot use any specific word and change it one by one as they are in thousands. So i want to learn code for that so that in one go we can take care of that</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38283</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38283</guid><dc:creator><![CDATA[Inshita Rawat]]></dc:creator><pubDate>Thu, 10 Jan 2019 19:45:29 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 19:32:31 GMT]]></title><description><![CDATA[<p dir="auto">Do you mean normal quotes or smart quotes?  What did you try when you saw there was a slight difference?</p>
<p dir="auto">Since the only difference I can see between your original data<br />
input-- <code>Adelanto 15515 361 363</code><br />
output-- <code>'Adelanto' 15515 361 363</code><br />
and your new data<br />
input-- <code>Adelanto Hill 15515 361 363</code><br />
output-- <code>'Adelanto Hill' 15515 361 363</code><br />
… is the word “Hill”, did you try to edit the Find What to be <code>^(.*?)(Adelanto Hill)(.*?)$</code></p>
<p dir="auto">Here’s some boilerplate, with links to regex help, and to a post that shows how to format example text in such a way as the forum doesn’t edit it (for example, your post looked like ‘smart quotes’, but <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: meta-chuh">@<bdi>meta-chuh</bdi></a> assumed 'normal quotes' instead.)</p>
<blockquote>
<p dir="auto">FYI: if you have further search-and-replace (regex) needs, study <a href="https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation" rel="nofollow ugc">this FAQ</a> and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you.  If you need help formatting the data so that the forum doesn’t mangle it (so that it shows “exactly”, as I said earlier), see <a href="https://notepad-plus-plus.org/community/topic/14262/how-to-markdown-code-on-this-forum/2" rel="nofollow ugc">this help-with-markdown post</a>, where <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> gives a great summary of how to use Markdown for this forum’s needs.<br />
Please note that for all “regex” queries – or queries where you want help “matching” or “marking” or “bookmarking”  a certain pattern, which amounts to the same thing – it is best if you are explicit about what needs to match, <em>and</em> what <em>shouldn’t</em> match, and have multiple examples of both in your example dataset.  Often, what <em>shouldn’t match</em> helps define the regular expression as much or more than what <em>should match</em>.</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/38279</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38279</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 10 Jan 2019 19:32:31 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Thu, 10 Jan 2019 19:20:00 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a><br />
this solution worked but later i came to know that i have data like</p>
<p dir="auto">input-- Adelanto Hill 15515 361 363<br />
output-- ‘Adelanto Hill’ 15515 361 363</p>
<p dir="auto">and can you please explain me the code so that i can make my own…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38275</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38275</guid><dc:creator><![CDATA[Inshita Rawat]]></dc:creator><pubDate>Thu, 10 Jan 2019 19:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to Editing in Notepad++ on Wed, 09 Jan 2019 21:46:16 GMT]]></title><description><![CDATA[<p dir="auto">welcome to the notepad++ community <a class="plugin-mentions-user plugin-mentions-a" href="/user/inshita-rawat" aria-label="Profile: Inshita-Rawat">@<bdi>Inshita-Rawat</bdi></a></p>
<p dir="auto">first make sure you use a copy of your desired file and only use the copy for testing the things below.</p>
<ol>
<li>if the word is always Adelanto, you can do it by using replace (you can find replace in the search menu of notepad++):</li>
</ol>
<p dir="auto">find what: <code>^(.*?)(Adelanto)(.*?)$</code><br />
replace with: <code>$1'$2'$3</code><br />
search mode: Regular Expression<br />
(important. Regular Expression has to be selected as search mode)</p>
<p dir="auto">then press replace all</p>
<ol start="2">
<li>if the word Adelanto can be anything but is always at the beginning, you can use this:</li>
</ol>
<p dir="auto">find what: <code>^(.*?) (.*?)$</code><br />
replace with: <code>'$1'$2</code><br />
search mode: Regular Expression</p>
<p dir="auto">then press replace all</p>
<p dir="auto">notes:<br />
it is best to copy and paste all “find what” and “replace with” texts, marked in red above, to your search and replace fields in notepad++ as they are very sensitive for any missing or different characters</p>
<p dir="auto">if your real life text file is more complex, for example if Adelanto can also be 2 or more words like Adelanto San Bernardino, or the position of it varies, we will need a sample of your original content.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38252</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38252</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Wed, 09 Jan 2019 21:46:16 GMT</pubDate></item></channel></rss>