Are the angle brackets (< or>) special in a regular expression?

前端 未结 2 862
时光说笑
时光说笑 2020-12-01 20:46

I am trying to get a regex expression to accept < and > as my outside delimiters to grab all the content in between them.

so content like such

<         


        
2条回答
  •  旧巷少年郎
    2020-12-01 21:43

    You could be having a problem when you try to insert the result into HTML and the browser thinks that it is not a valid HTML tag, like .

提交回复
热议问题