I want to construct a glob pattern that matches two spaces or more followed by some text on a line of text for pattern replacement.
For instance, consider the following string
str="Here is a list of functions Marionette Recutils"
I want to replace the last part consisting of two or more spaces followed by some text. That in a glob pattern matching " Marionette Recutils"
.
I want a pattern that matches two or more spaces followed by some text. Have come up with the following pattern
ptrn="[[:blank:]]+([[:blank:]])+([[:graph:]])"
Can the pattern for parameter substitution match a substring, allowing both leading and trailing characters to exist?
[:blank:]
because you may have other blank characters besides spaces (e.g. tabs) delimiting your string?