如何仅删除字母或数字附近的字符

How to remove characters only near letters or numbers

我只想去掉字母和数字处的字符<,如果没有数字或字母保留<符号。

/<  
<apple
<organes
<\

转换为

    /<  
    apple
    organes
    <\

找到这个:

<(?=[a-zA-Z0-9])(.*)

然后替换为 (这是 'space' 后跟 '$1')。

Search:  \b[<>]|[<>]\b
Replace: 

这将替换任何 <> "at the start or end of a word"(这就是 \b 的意思)。

查找内容:<(?=\w+)
替换为:nothing