wildcard equivalent for ^w

M

muyBN

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.
 
K

Klaus Linke

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
 
M

muyBN

Looks like a search for [^32^t^s]@ only gets one character at a time.

--
Bryan


Klaus Linke said:
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



muyBN said:
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.
 
G

Graham Mayor

Use [^32^t^s]{1,} instead

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a time.

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



muyBN said:
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.
 
M

muyBN

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)

--
Bryan


Graham Mayor said:
Use [^32^t^s]{1,} instead

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a time.

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,
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.
 
M

muyBN

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?

--
Bryan


Graham Mayor said:
Use [^32^t^s]{1,} instead

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a time.

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,
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.
 
M

muyBN

Sorry about the duplicate post. "Regular expressions" is the correct
term--anything but regular!
--
Bryan


muyBN said:
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?

--
Bryan


Graham Mayor said:
Use [^32^t^s]{1,} instead

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a time.


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,
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.
 
M

muyBN

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.

--
Bryan


muyBN said:
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?

--
Bryan


Graham Mayor said:
Use [^32^t^s]{1,} instead

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a time.


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,
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.
 
G

Graham Mayor

{1,} means one or more of the preceding characters. For the tutorial see
http://www.gmayor.com/replace_using_wildcards.htm

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
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)

Use [^32^t^s]{1,} instead

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Looks like a search for [^32^t^s]@ only gets one character at a
time.


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,
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top