[go: up one dir, main page]

Menu

#13 Reverse substitution in REPLACE statement

2.0
open
None
2023-09-22
2023-08-09
No

Provide an opportunity for the REPLACE operator to set the substitution of the found string into the replacement string.
Like that:
REPLACE R"(?<=<td>).*?(?=</td>)" TO P"<b>{content}</b>" WITH P"{content}" AS FOUND

Discussion

  • Oleg Osepyants

    Oleg Osepyants - 2023-08-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
     Provide an opportunity for the REPLACE operator to set the substitution of the found string into the replacement string.
     Like that:
    -REPLACE R&#34;(?&lt;=&lt;td&gt;).*?(?=&lt;/td&gt;)&#34; TO P&#34;&lt;b&gt;{content}&lt;/b&gt;&#34; WITH FOUND AS P&#34;{content}&#34;
    +REPLACE R&#34;(?&amp;lt;=&amp;lt;td&amp;gt;).*?(?=&amp;lt;/td&amp;gt;)&#34; TO P&#34;&amp;lt;b&amp;gt;{content}&amp;lt;/b&amp;gt;&#34; WITH FOUND AS P&#34;{content}&#34;
    
     
  • Oleg Osepyants

    Oleg Osepyants - 2023-08-09
    • summary: "WITH FOUND AS" in REPLACE statement --> "WITH ... AS FOUND" in REPLACE statement
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
     Provide an opportunity for the REPLACE operator to set the substitution of the found string into the replacement string.
     Like that:
    -REPLACE R&#34;(?&amp;lt;=&amp;lt;td&amp;gt;).*?(?=&amp;lt;/td&amp;gt;)&#34; TO P&#34;&amp;lt;b&amp;gt;{content}&amp;lt;/b&amp;gt;&#34; WITH FOUND AS P&#34;{content}&#34;
    +REPLACE R&#34;(?&amp;lt;=&amp;lt;td&amp;gt;).*?(?=&amp;lt;/td&amp;gt;)&#34; TO P&#34;&amp;lt;b&amp;gt;{content}&amp;lt;/b&amp;gt;&#34; WITH P&#34;{content}&#34; AS FOUND
    
     
  • Oleg Osepyants

    Oleg Osepyants - 2023-09-22
    • summary: "WITH ... AS FOUND" in REPLACE statement --> Reverse substitution in REPLACE statement
     

Log in to post a comment.