Regex to match not start of line

前端 未结 6 642
陌清茗
陌清茗 2021-02-02 16:08

I have the following XML tag


I want to replace the < in the text with <

6条回答
  •  心在旅途
    2021-02-02 16:44

    [^<]+ = one or more characters that are not <

    < = the < you're looking for

    replace:

    ([^<]+)<
    

    with:

    $1<
    

提交回复
热议问题