1

How to extract string between space and symbol '>'?

String 1

 [impro:0,grp:00,time:0xac,magic:0x00ac] CAR<7:5>|BIKE<4:0>,orig:0x8c,new:0x97

String 2

[impro:0,grp:00,time:0xbc,magic:0x00bc] CAKE<4:0>,orig:0x0d,new:0x17

In string 1, i want to extract CAR<7:5and BIKE<4:0,

In string 2, i want to extrac CAKE<4:0

Any regex for this in python ?

Submitted September 13th 2021 by Admin

Answers
0

You can use \w+<[^>]+

DEMO

enter image description here

Admin | 1 month ago



Relevant Questions