RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
\s?\b((?!\b50\b|\b00\b)\w*)\b\s?
Description
This Expression exclude any word/code from a sentence. To find out all the words except any specific codes/words use this. In this example we will exclude 50 and 00 and find all other words in the sentence. Example Text: "Ask me 50 00 times" Matches:Ask,me,times Here it ignores 50 and 00 and matches the other words. Modify according to your needs. I excluded 50 or 00.
Matches
ask me 50 times | ask me 00 times | ask me 50 00 times
Non-Matches
.. | .. | ..
Author Rating: Not yet rated. Shahed Khan
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials