sed: Can my pattern contain an “is not” character? How do I say “is not X”?

后端 未结 4 982
夕颜
夕颜 2020-12-24 12:03

How do I say \"is not\" a certain character in sed?

4条回答
  •  青春惊慌失措
    2020-12-24 12:47

    From my own experience, and the below post supports this, sed doesn't support normal regex negation using "^". I don't think sed has a direct negation method...but if you check the below post, you'll see some workarounds. Sed regex and substring negation

提交回复
热议问题