A Active PRE4-RP YES IOS N/A ONLINE
B Standby PRE4-RP YES IOS N/A ONLINE
1 4jacket-1 YES LCDOS N/A ONLINE
1/1 2cable-dtcc NO LCDOS N/A ONLINE
2/1 2cable-dtcc NO LCDOS N/A ONLINE
3 4jacket-1 YES LCDOS N/A ONLINE
5/0 ubr10k-clc-mc2020v YES IOS N/A ONLINE
5/1 ubr10k-clc-mc2020v YES IOS N/A ONLINE
6/0 ubr10k-clc-mc2020v YES IOS N/A ONLINE
7/0 ubr10k-clc-mc2020v YES IOS N/A ONLINE
7/1 ubr10k-clc-mc2020v YES IOS N/A ONLINE
8/0 ubr10k-clc-mc2020v YES IOS N/A ONLINE
8/1 ubr10k-clc-mc2020v YES IOS N/A ONLINE
==== ======================== ======= ========== =========== ==============
我想获取ONLINE这个位置的单词,这个位置的单词有可能是ONLINE或其他,正则表达式可以怎么写啊
我写了一个 \b\w*\b\s+(?<=\r\n),但获取出来的这个位置的单词后面还带有换行符了。
正则表达式可以怎么写使取出来的单词后面没有换行符、空格那些东西