Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

wildcard equivalent for ^w

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
muyBN - 15 Feb 2007 00:22 GMT
What is the wildcard equivalent for searching for ^w (whitespace)? Of course,
when I use ^w with the wildcard search option, I receive an error. I used
"[^09,]" but this only returned one tab or space character at a time and I
need to be able to find multiple whitespaces together (whether it be tabs or
spaces), the same as searching for ^w does when the "Use Wildcards" option is
unchecked.

Signature

Bryan

Klaus Linke - 15 Feb 2007 00:37 GMT
Hi Bryan,

[^32^t^s]@ should be equivalent to ^w (^32 being a space... you could also
type it in; ^t or ^9 a tab; ^s or ^0160  a non-breaking space).
@ matches "1 or more occurrences".

Klaus

> What is the wildcard equivalent for searching for ^w (whitespace)? Of
> course,
[quoted text clipped - 5 lines]
> is
> unchecked.
muyBN - 15 Feb 2007 08:54 GMT
Looks like a search for [^32^t^s]@ only gets one character at a time.

Signature

Bryan

> Hi Bryan,
>
[quoted text clipped - 13 lines]
> > is
> > unchecked.
Graham Mayor - 15 Feb 2007 15:18 GMT
Use [^32^t^s]{1,} instead

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Looks like a search for [^32^t^s]@ only gets one character at a time.
>
[quoted text clipped - 18 lines]
>>> --
>>> Bryan
muyBN - 15 Feb 2007 20:46 GMT
That worked, thanks, Graham! Can you give me an explanation of what the
"{1,}" does; or better yet, where I can please find a good tutorial to learn
more about  "normal expressions"? (assuming that that's what this subject is
called)

Signature

Bryan

> Use [^32^t^s]{1,} instead
>
[quoted text clipped - 20 lines]
> >>> --
> >>> Bryan
Graham Mayor - 16 Feb 2007 07:16 GMT
{1,} means one or more of the preceding characters. For the tutorial see
http://www.gmayor.com/replace_using_wildcards.htm

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> That worked, thanks, Graham! Can you give me an explanation of what
> the "{1,}" does; or better yet, where I can please find a good
[quoted text clipped - 34 lines]
>>>>> --
>>>>> Bryan
muyBN - 15 Feb 2007 20:50 GMT
That worked, thanks, Graham! Can you give me an explanation of what the
"{1,}" does; or better yet, where I can please find a good tutorial to learn
more about  "normal expressions"? (assuming that that's what this terminology
is called)

Also, is there a way to search out a whole word with wildcards?

Signature

Bryan

> Use [^32^t^s]{1,} instead
>
[quoted text clipped - 20 lines]
> >>> --
> >>> Bryan
muyBN - 15 Feb 2007 21:14 GMT
Sorry about the duplicate post. "Regular expressions" is the correct
term--anything but regular!
Signature

Bryan

> That worked, thanks, Graham! Can you give me an explanation of what the
> "{1,}" does; or better yet, where I can please find a good tutorial to learn
[quoted text clipped - 27 lines]
> > >>> --
> > >>> Bryan
muyBN - 15 Feb 2007 22:23 GMT
Through further research, answered my own questions: "{1,}" = one or more
characters matching the preceding criteria.

Sources: I started off with
http://visualbasic.about.com/od/usingvbnet/l/blregexa.htm which had some
examples and other references. The linking article there that helped me most
was http://www.4guysfromrolla.com/webtech/090199-1.shtml.

Signature

Bryan

> That worked, thanks, Graham! Can you give me an explanation of what the
> "{1,}" does; or better yet, where I can please find a good tutorial to learn
[quoted text clipped - 27 lines]
> > >>> --
> > >>> Bryan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.