Ignoring spaces

Report a typo

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?

Select one option from the list
___

Create a free account to access the full topic