Jump to content

Find & Replace Text


Recommended Posts

Posted

Hi

 

I have a problem in a drawing where I need some text sorted.

 

The text is currently like this +9. 07 (2spaces between.&0), I need to do a find and replace so that the text reads +9.07 (no spaces).

 

These are spot heights and there are hundreds of them!

 

I know you can use * as a wild card match but I'm lost!

 

Cheers :)

Posted

And Find & Replace doesn't work because of the two spaces?

Posted
And Find & Replace doesn't work because of the two spaces?

 

I have tried and tried but I end up with the drawing looking like this;

 

+9****************07 :(

Posted

Maybe one of the other wild-card characters would work?

Posted

Answered my own question. Use Find and Replace. For the criteria to match in the Find field use:

 

9.[ ][ ]07

 

Between the brackets press the space bar. You don't want it to look like this:

 

9.[][]07

 

as it won't work.

Posted
Answered my own question. Use Find and Replace. For the criteria to match in the Find field use:

 

9.[ ][ ]07

 

Between the brackets press the space bar. You don't want it to look like this:

 

9.[][]07

 

as it won't work.

 

and what should I replace it with? sorry this is driving me mad

 

Done**

 

Replace with . and jobs a good one!!

 

thank you very much

Posted

Guess I wasn't clear?

 

When the Find and Replace dialogue window appears in the blank box under the words Find what: I want you to type the following just as it appears here:

 

9.[ ][ ]07

 

That is the number 9 followed by a period (or dot) followed by a left bracket, then press the space bar, a right bracket, another left bracket, then press the space bar, a right bracket followed by the numbers 0 and 7.

 

In the blank box under the words Replace with: I want you to type the following just as it appears here:

 

9.07

 

That is the number 9 followed by a period (or dot) followed by the numbers 0 and 7.

 

This last number, 9.07, is what you wanted right? The first number, while looking somewhat similar, has two spaces to the right of the period and before the 0. It looks like this: 9. 07.

 

See the difference?

Posted

There are a total of ten wild-card characters available in Find & Replace. The use of the brackets [ ] matches any one of the characters enclosed between; for example, [XY]Z matches XZ and YZ. In your case the space we deliberately put between the brackets is translated literally, thus, AutoCAD knows we are looking for two spaces. I suppose I could have put two spaces between one set of brackets and it may have worked just as well. I'll have to test that out.

Posted

Excellent, thanks again!

 

Would there be a list of all these wildcards?

Posted

Consult your Help files. Look for the topic Find and Replace dialog box (text). Then click on the Concept tab. All the wild-cards are listed.

Posted

I just tried using only one set of brackets with two spaces between them and it did not work.

Posted
I just tried using only one set of brackets with two spaces between them and it did not work.

 

Thanks again for your help, much appreciated.

Posted

you use the find replace command.

in the find text string box type the following .spacespace (spacespace is space bar twice)

in the replace box just put in .

then select replace all

this will change all text that has a . with two spaces after it to just a period

Posted

Just trying that out in my version, and in Find and Replace Options, I had to unclick 'Find whole words only' :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...