<?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[RegEx: Modify text between sh. and ( to lowercase]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I need help again in term of using regular expression for filtering.</p>
<p dir="auto">I have a lot of text to modify.<br />
The part of the text I have to modify to lower case after sh. and before (.</p>
<p dir="auto">Here are two examples:<br />
<em>sh.Wetter.Darksky.currently.windSpeed.beaufort_string(“Windstille”)<br />
sh.Tankstellen.Metro_Eibach.diesel(element[‘diesel’])</em></p>
<p dir="auto">to be be converted to<br />
<em>sh.wetter.darksky.currently.windSpeed.beaufort_string(“Windstille”)<br />
sh.tankstellen.metro_eibach.diesel(element[‘diesel’])</em></p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17006/regex-modify-text-between-sh-and-to-lowercase</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 03:09:14 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17006.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jan 2019 19:54:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:49:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said:</p>
<blockquote>
<p dir="auto">🤦 U+1F926 (<a href="https://emojipedia.org/face-palm/" rel="nofollow ugc">https://emojipedia.org/face-palm/</a>)</p>
</blockquote>
<p dir="auto">even easily understandable for me :-D</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38977</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38977</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:40:52 GMT]]></title><description><![CDATA[<p dir="auto">i guess from now on <code>(s.h)</code> is gonna pursue me as hidden insider to a facepalm (－‸ლ)<br />
😂😂😂</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38971</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:40:52 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:32:11 GMT]]></title><description><![CDATA[<p dir="auto">🤦 U+1F926 (<a href="https://emojipedia.org/face-palm/" rel="nofollow ugc">https://emojipedia.org/face-palm/</a>)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38969</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38969</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:05:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">and i still call it a typo !!! ;-)</p>
<p dir="auto">btw: we’ve just hijacked another thread … but it’s fun from time to time 👍</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38965</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38965</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:02:37 GMT]]></title><description><![CDATA[<p dir="auto">LOL :-D</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38964</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38964</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:02:37 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:01:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13724">@Eko-palypse</a></p>
<p dir="auto">if you hear or see something so stupid, that you have to hit your face with your open hand, it’s called a face palm</p>
<p dir="auto">(－‸ლ)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38963</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38963</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:03:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13724">@Eko-palypse</a></p>
<p dir="auto">I think a possible explanation for facepalm is “I can’t believe I did that”.  In the usage above, making a mistake in the regex you are trying to explain the meaning of yields that reaction.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38962</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38962</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:00:30 GMT]]></title><description><![CDATA[<p dir="auto">OOKKKAAAYY - everybody seems to know what facepalms means except …  MEEEE. :-)<br />
What does it mean??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38961</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38961</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:00:30 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:55:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a><br />
ahhh …<br />
i only know text based face palm as:</p>
<p dir="auto">(－‸ლ)</p>
<p dir="auto">😂</p>
<p dir="auto">glad you’re in a good mood, i was worried a bit, and i tend to ask freely.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38959</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38959</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:55:01 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:48:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a></p>
<p dir="auto">Nono…mood is fine.  You seem like a humorous guy, with all the emojis, thought you’d like the “facepalm” thing.  Sorry.  Certainly didn’t intend to offend.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38958</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38958</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:42:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">i’d call it a typo …<br />
you’re not in a good mood today, am i right ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38956</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:41:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a> said:</p>
<blockquote>
<p dir="auto">(s.h)</p>
</blockquote>
<p dir="auto">Facepalm! :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38955</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38955</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:41:21 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 21:33:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14283">@Michael-Wenzel</a></p>
<p dir="auto">you’re welcome.</p>
<p dir="auto">here’s a little explanation to get you started using regex so that you can easily adapt them for your needs:</p>
<p dir="auto"><strong>search what:</strong></p>
<p dir="auto"><code>(s.h)</code>:<br />
the first is the beginning text that you are searching for<br />
the brackets ( and ) define a string buffer, which will be available at the replace as variable $1.<br />
every time you enclose another section in brackets, you will create a new string buffer variable $2 and so on.</p>
<p dir="auto"><code>(.*?)</code>:<br />
this states that the text in between your beginning and the end can be anything with any length.<br />
it’s content will be reflected as $2</p>
<p dir="auto"><code>(\()</code>:<br />
this marks your end search character ( where you want to stop converting to lower case.<br />
note: this looks weird, but it’s basically a ( bracket in between two brackets.<br />
to make sure it is interpreted as text and not as a bracket that opens another buffer, it has to be “escaped” marked with a preceeding \.<br />
it’s easier to read if some spaces are inserted: <code>(     \(     )</code></p>
<p dir="auto"><strong>replace with:</strong></p>
<p dir="auto"><code>$1\L$2$3</code></p>
<p dir="auto">this needs almost no further information.<br />
the string buffer variables $1 $2 and $2 are put together without spaces, and \L before $2 converts the second string variable to lower case</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38954</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 21:33:08 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:20:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a></p>
<p dir="auto">THX</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38947</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38947</guid><dc:creator><![CDATA[Michael Wenzel]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx: Modify text between sh. and ( to lowercase on Fri, 25 Jan 2019 20:10:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14283">@Michael-Wenzel</a></p>
<p dir="auto">you can easily do this by using a regex search/replace in notepad++</p>
<p dir="auto">find what: <code>(sh.)(.*?)(\()</code><br />
replace with: <code>$1\L$2$3</code><br />
search mode: regular expression</p>
<p dir="auto">gives you:</p>
<pre><code class="language-text">sh.wetter.darksky.currently.windspeed.beaufort_string("Windstille")
sh.tankstellen.metro_eibach.diesel(element['diesel'])
</code></pre>
<p dir="auto">as result</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38937</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38937</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:10:56 GMT</pubDate></item></channel></rss>