[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replace sub-string
From: |
Aaron Hill |
Subject: |
Re: Replace sub-string |
Date: |
Thu, 28 May 2020 05:10:03 -0700 |
User-agent: |
Roundcube Webmail/1.4.2 |
On 2020-05-28 4:46 am, Freeman Gilmore wrote:
Just getting to this and having a problem. See below.
\version "2.20.0"
#(regexp-substitute/global #f "[ \t]+" "this is the test" 'pre "-"
'post)
Gives: Unbound variable: regexp-substitute/global
What am i missing?
You will need to bring in the regular expression module:
%%%%
\version "2.20.0"
#(use-modules (ice-9 regex))
\markup
#(regexp-substitute/global #f
"[ \t]+"
"this is the test"
'pre "-" 'post)
%%%%
NOTE: I am using \markup above as a simple way to visualize the
resulting string.
-- Aaron Hill