Use regex in patsub

Asked

Viewed 37 times

1

make has the function patsub to replace, or remove, text patterns in a string. A documentation only has examples containing fixed text snippets.

make has some native way of applying regex to a string? Something like:

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

That would replace all the numbers with nothing, returning:

"arquivo arquivo arquivo"
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.