正则表达式unix在之间找到一个字符串

时间:2022-04-10 21:46:51

I'm looking for a regular expression to find a string between < > in unix

我正在寻找一个正则表达式来在unix中的<>之间找到一个字符串

for example

例如

hello <en> this is a <test>

then I need to get as a result

然后我需要得到结果

<en> <test>

1 个解决方案

#1


1  

This is fairly simple:

这很简单:

(<.*?>)

Regex101

Regex101

#1


1  

This is fairly simple:

这很简单:

(<.*?>)

Regex101

Regex101