Regular Expression to exclude set of Keywords

后端 未结 7 1691
一个人的身影
一个人的身影 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.

    0 讨论(0)
提交回复
热议问题