Regular expression greater than and less than

前端 未结 3 1643
遥遥无期
遥遥无期 2021-01-18 09:14

I would like to match any one of these characters: < or > or <= or >= or =.

This one doe

3条回答
  •  轮回少年
    2021-01-18 09:52

    Try this:

    [<>]=?|=
    

    It matches < or > optionally followed by =, or just = by itself.

提交回复
热议问题