adamsdesk, (edited ) I must have my thoughts crossed as for the life of me I can't seem to figure out this regex in BASH using a parameter expansion.
I want to search for 2 or more dashes and then replace with one dash. Here is what I thought would work, but doesn't. Any suggestions?
string="Hello-World! #debug command---line"
string="${title//[-]{2,}/-}"
Add comment