Suppose, you write a program to match a lowercase English word ignoring spaces before and after it. A word must contain at least one character.
There are several strings that should be successfully matched.
"a"
" java "
"programming "
Which one of the following regexes can help you to write this program?