find using wildcard

N

noordzuid2003

Hi,

Ok, i'm a newbie concerning wildcards in word. I'm trying to find (and
replace) a range of numbers, followed by a tab (the ^t). So,
1(tab),2(tab) ... 20(tab).
I tried [0-9]{1,2}^t, but that didn't work?!?!?

Any suggestions

Erik (word X, osx10.3.9)
 
M

matt neuburg

Hi,

Ok, i'm a newbie concerning wildcards in word. I'm trying to find (and
replace) a range of numbers, followed by a tab (the ^t). So,
1(tab),2(tab) ... 20(tab).
I tried [0-9]{1,2}^t, but that didn't work?!?!?

Works fine here. I wrote:

Here is the 12[tab] number.

I put the insertion point at the start of the document, did a "use
wildcards" search for what you put:

[0-9]{1,2}^t

and found the 12[tab].

m.
 
D

Daiya Mitchell

Hi,

Ok, i'm a newbie concerning wildcards in word. I'm trying to find (and
replace) a range of numbers, followed by a tab (the ^t). So,
1(tab),2(tab) ... 20(tab).
I tried [0-9]{1,2}^t, but that didn't work?!?!?

Works fine here. I wrote:

Here is the 12[tab] number.

I put the insertion point at the start of the document, did a "use
wildcards" search for what you put:

[0-9]{1,2}^t

and found the 12[tab].

m.

Matt, are you using Word 2004? Eric is in Word X. I know wildcards were
partially broken in Word 2001, and am not sure at what point they got fixed.

My vague memory suggests that the "broken"ness involved finding numbers,
though for me I think it found single-digit but not double-digit numbers.
 
M

matt neuburg

Daiya Mitchell said:
Hi,

Ok, i'm a newbie concerning wildcards in word. I'm trying to find (and
replace) a range of numbers, followed by a tab (the ^t). So,
1(tab),2(tab) ... 20(tab).
I tried [0-9]{1,2}^t, but that didn't work?!?!?

Works fine here. I wrote:

Here is the 12[tab] number.

I put the insertion point at the start of the document, did a "use
wildcards" search for what you put:

[0-9]{1,2}^t

and found the 12[tab].

m.

Matt, are you using Word 2004? Eric is in Word X

D'Oh! I missed that. You're right: I am using Word 2004, and just
yesterday I finally deleted my copy of Word X so I can't test there.
Sorry...! m.
 
E

Elliott Roper

matt neuburg said:
Daiya Mitchell said:
Hi,

Ok, i'm a newbie concerning wildcards in word. I'm trying to find (and
replace) a range of numbers, followed by a tab (the ^t). So,
1(tab),2(tab) ... 20(tab).
I tried [0-9]{1,2}^t, but that didn't work?!?!?

Works fine here. I wrote:

Here is the 12[tab] number.

I put the insertion point at the start of the document, did a "use
wildcards" search for what you put:

[0-9]{1,2}^t

and found the 12[tab].

m.

Matt, are you using Word 2004? Eric is in Word X

D'Oh! I missed that. You're right: I am using Word 2004, and just
yesterday I finally deleted my copy of Word X so I can't test there.
Sorry...! m.

OK, so I thought I would try in Word X. Here Matt's test consistently
crashes Word v.X
with:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x06d7e000

That's with 10.1.6 of Word and OS X 10.4.1

So Erik, it could be worse. I got [0-9] to work OK, but adding {1,2}
blew it away. The tab did not get a chance to wreck it ;-)
 
N

noordzuid2003

Hi,

I just tried [0-9]{1,2}^t in Word 2004, but i didn't work! I keep on
trying ...
 
J

JE McGimpsey

Elliott Roper said:
OK, so I thought I would try in Word X. Here Matt's test consistently
crashes Word v.X
with:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x06d7e000

That's with 10.1.6 of Word and OS X 10.4.1

So Erik, it could be worse. I got [0-9] to work OK, but adding {1,2}
blew it away. The tab did not get a chance to wreck it ;-)

Can't reproduce that, but it doesn't work correctly for me, either.

With me it replaces the first digit, but retains the tab.

Word 10.1.6, OS X 10.4.1
 
J

JE McGimpsey

I just tried [0-9]{1,2}^t in Word 2004, but i didn't work! I keep on
trying ...

What does "didn't work" mean? It works fine for me with Word 2004
(11.1.1).

Does the Find and Replace find the instances of one or two digits,
followed by a tab?


What are you replacing it with?
 
D

Daiya Mitchell

I just tried [0-9]{1,2}^t in Word 2004, but i didn't work! I keep on
trying ...

What does "didn't work" mean? It works fine for me with Word 2004
(11.1.1).

Does the Find and Replace find the instances of one or two digits,
followed by a tab?


What are you replacing it with?

And just to make sure, you do have "use wildcards" checked, right?
 
E

Elliott Roper

JE said:
Elliott Roper said:
OK, so I thought I would try in Word X. Here Matt's test consistently
crashes Word v.X
with:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x06d7e000

That's with 10.1.6 of Word and OS X 10.4.1

So Erik, it could be worse. I got [0-9] to work OK, but adding {1,2}
blew it away. The tab did not get a chance to wreck it ;-)

Can't reproduce that, but it doesn't work correctly for me, either.

With me it replaces the first digit, but retains the tab.

Word 10.1.6, OS X 10.4.1
Hmm. I did exactly Matt's test and it crashed Word with the BAD_ACCESS
every time. I seem to have exactly the same version and OS X version as
you do. Must be Coriolis forces at work eh?.
 
E

Elliott Roper

JE said:
Dunno, but I wouldn't bet against a bad pref file or Normal template...

You should not have bet on it either. Funnily, with a new Normal and a
new Word Settings (10), it worked once like you described (matched on
first digit of [0-9]{1,2}, then it crashed on find next. Restored my
old prefs and normal, and it went back to crashing the first time. Far
more consistent.

Wildcard search is wilder than it ought to be. Three of us on the same
version getting errr.. wildly different wrong results on the same test.
 

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