Use regex on patsub

1

Make has the function patsub to replace, or remove, text patterns in a string. documentation only has examples containing fixed portions of text.

Does make have any native way of applying regex to a string? Something like:

$(patsubst [0-9]+,,"arquivo1 arquivo2 arquivo3")

That would replace all numbers by nothing, returning:

"arquivo arquivo arquivo"
    
asked by anonymous 23.06.2014 / 06:32

0 answers