匹配正则表达式后的下一个词

Match the next word after a regex expression

我想匹配正则表达式后的单词。

例如,我想出了一个正则表达式来匹配日期和时间 - <Apr 11, 2017 2:35:53 AM SGT>

<(Jan|Feb|Mar|Apr|May|June|July|Aug|Sept|Oct|Nov|Dec)\s(\d\d?).+?(\d\d\d\d)\s\b((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9]) ([AaPp][Mm])\sSGT)>

Can see that it works here

我想进一步匹配这个正则表达式之后的词。

Apr 12, 2017, 10:56:22 AM   Hello   #### <Apr 12, 2017 2:27:08 AM SGT> <Info> 

所以它应该只匹配单词 <Info> 但它突出显示

 12, 2017, 10:56:22 AM Hello #### <Apr 12, 2017 2:27:08 AM SGT> <Info>

My regex expression

感谢每一个帮助!

如果您只想获取 <info>,只需扩展您的正则表达式以匹配下一个词:

<(?:Jan|Feb|Mar|Apr|May|June|July|Aug|Sept|Oct|Nov|Dec)\s\d\d?.+?\d\d\d\d\s\b(?:1[0-2]|0?[1-9]):[0-5][0-9]:[0-5][0-9]\s[AaPp][Mm]\sSGT>\s(<\w+>)

Example.