Re: REGULAR EXPRESSION extract a word and text around it

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Thu, 29 Jun 2006 16:29:04 +0000 (UTC), Jared Parsons [MSFT]
<jaredpar@xxxxxxxxxxxxxxxxxxxx> wrote:

Hello teo,

.{1,30}?myWord.{1,30}

If I understand your question correctly, the following regex should work

(.{1,30})?myWord(.{1,30})?

or simply

..{0,30}myWord.{0,30}
.