<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Use text of regex match</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/</link><description>Recent posts to Use text of regex match</description><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 22 Jan 2021 12:20:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/feed.rss" rel="self" type="application/rss+xml"/><item><title>Use text of regex match</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/?limit=250#bdf2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You probably have to go to Boost::Regex documentation to find out all the details of the regex syntax used.&lt;br/&gt;
The &lt;code&gt;$&lt;/code&gt; isn't used by itself here.  It is part of &lt;code&gt;${&lt;/code&gt; 1 &lt;code&gt;}&lt;/code&gt; which means the first capture group contents.&lt;br/&gt;
In my testing of exactly what I provided, &lt;code&gt;[I]&lt;/code&gt; becomes &lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt; so I can't reproduce what you're saying.&lt;br/&gt;
You can get good N++/Pythonscript regex help by posting here:  &lt;a href="https://community.notepad-plus-plus.org/" rel="nofollow"&gt;https://community.notepad-plus-plus.org/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Fri, 22 Jan 2021 12:20:45 -0000</pubDate><guid>https://sourceforge.net34197f4a490b0ec6edc7338d9d786bc555b03a0d</guid></item><item><title>Use text of regex match</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/?limit=25#8c43/876d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you! That works, although I'm not quite sure why, because I can't find \l or this use of $ in the documentation for Python's re class.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">607</dc:creator><pubDate>Thu, 21 Jan 2021 16:32:00 -0000</pubDate><guid>https://sourceforge.net8283df28a4b73d73a5e7641c5682f8faf19148c2</guid></item><item><title>Use text of regex match</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/?limit=250#8c43</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;So this is not a Pythonscript question, but search for&lt;br/&gt;
&lt;code&gt;(?i)\[([a-z])\]&lt;/code&gt;&lt;br/&gt;
and replace with&lt;br/&gt;
&lt;code&gt;&amp;lt;\l${1}&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Wed, 20 Jan 2021 12:36:23 -0000</pubDate><guid>https://sourceforge.netb64a27fd711308e8a6e63ec07fd335da0824b013</guid></item><item><title>Use text of regex match</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/95cfc6c5b4/?limit=25#4536</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I was expecting this to be one of the most used cases, but I haven't been able to find anyone else doing it or asking about it.&lt;br/&gt;
I would like to replace text using that text. In this specific case, I would like to replace any letter surrounded with square brackets to a lowercased version of the same letter surrounded in triangle brackets (I'm converting BB markup to HTML). &lt;br/&gt;
eg. replace  &lt;code&gt;[b]&lt;/code&gt; with &lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt; and &lt;code&gt;[I]&lt;/code&gt; with &lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt;.  I have tried for 40 minutes but without success, as I cannot obtain the match's content.&lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Bikker</dc:creator><pubDate>Tue, 19 Jan 2021 16:06:29 -0000</pubDate><guid>https://sourceforge.netc9d837342e30a1f23b5caaa6b9fcb8267f947a03</guid></item></channel></rss>