<189>131: *Jan 2 13:20:47.581: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
From the above String, I want to split the the following:
189 -between <>
Jan 2 13:20:47.581 -between * %
LINEPROTO
5
UPDOWN
FastEthernet0/1 - after string Interface
up -after String state to status
Final String array will be:
[189],[Jan 2 13:20:47.581],[LINEPROTO],[5],[UPDOWN],[FastEthernet0/1],[up]
How do I do this using java regex?