Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-05-2012, 03:05 PM
Colin Legg's Avatar
Colin Legg Colin Legg is offline VBScript.RegExp: exclude a particular word Windows 7 32bit VBScript.RegExp: exclude a particular word Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

Here's one pattern (a negative lookahead) which will exclude dog:
Code:
.Pattern = "(?!dog\b)\b\w+"
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
.doc Suddenly Changed to .vbe (VBScript Encoded Script File) emes Word 2 04-24-2012 05:07 PM
VBScript.RegExp: exclude a particular word WORD: Rtf and search-replace (regexp/fonts) seteshpl Word 1 09-06-2011 01:35 AM
Edit spell check dic to exclude words? franklekens Word 1 07-03-2010 09:57 AM
VbScript to Print a .pdf DaveB Excel 2 03-07-2009 12:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft