How can I parse a string using regex?
I want to find is string an option or not
--option
ABC -o
DEF -help
TRUE -h
FALSE
I tried this
"--option".matches("(--)(\\s+)");
But this is an invalid regex. Any ideas how to find if string is an option?