Need help in getting word from string

Count: PG 12 1-200 mode: Unknown alarm: Unknown interface: Unknown
Count: DG 12 100-200 mode: Unknown alarm: Unknown interface: Unknown

I want to extract PG 12 from string and same from other string and likewise from upcoming string please help me how to get the value from string

@Puneet_Singh1 - please have a look here…I think this has been already solved…

Yes sir…Your regex is working fine for below string
Count: PGI 04 201-396 mode: Unknown alarm: Unknown interface: integrated
But i am getting issue for this below string
Count: PG 12 1-200 mode: Unknown alarm: Unknown interface: Unknown

@Puneet_Singh1 - could please let me know what’s the regex pattern currently you are trying …

I will take a look and tweak as needed

@Puneet_Singh1 - Please take a look at the below pattern.,

Regex Pattern Link