Regular Expression to exclude set of Keywords

后端 未结 7 1724
一个人的身影
一个人的身影 2020-11-30 22:54

I want an expression that will fail when it encounters words such as \"boon.ini\" and \"http\". The goal would be to take this expression and be able to construct for any se

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 23:46

    ^[^£]*$
    

    The above expression will restrict only the pound symbol from the string. This will allow all characters except string.

提交回复
热议问题