I need to create an expression matching a whole number followed by either \"seconds\" or \"\"minutes\"
I tried this expression: ([0-9]+)\\s+(\\bseconds\\b)|(\\
([0-9]+)\\s+(\\bseconds\\b)|(\\
You can use a single group for seconds/minutes. The following expression may suit your needs:
([0-9]+)\s*(seconds|minutes)