带有分隔符的正则表达式以获得价值

regex with delimiters for getting value

我需要获取值 20,如下所示:

this is expired time is (second) 20
max time in the system       1048576

我的正则表达式必须 return 值 20。

我试过如下:

this is expired time is\s+(\d+)

任何帮助将不胜感激

^this is expired time is \(second\) (\d+)