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

Reply via email to