using wildcards to find and replace??

  • Thread starter Thread starter TX Italian
  • Start date Start date
T

TX Italian

I have a document containting punch reports for our employees. If the
employee works on a particular day it reads something like this: Mon
11/10 1158a
If they are off, it reads something like: Sun 11/09 Unscheduled
I would like to do a find/replace that will scan through and
completely delete the lines for when they are unscheduled. I believe
this can be done using wildcards but I am not having any luck. Any
suggestions would be greatly appreciated.

Thanks,

Jason
 
If they are off, it reads something like: Sun 11/09 Unscheduled
I would like to do a find/replace that will scan through and
completely delete the lines for when they are unscheduled.


Hi Jason,

You can do that with two simple non-wildcard searches:
Replace "Unscheduled" with some paragraph style or paragraph formatting
(such as alignment=right) that doesn't appear in the document, then delete
all paragraphs with that formatting (... find that formatting, replace with
nothing).

With wildcards, you could use
Find what: [!^13]@Unscheduled^13
Replace with:

^13 is the code of a paragraph mark (... ^p doesn't work with wildcards for
unknown reasons).
[!^13]@ matches any text that doesn't contain a paragraph mark.

Greetings,
Klaus
 
Hi Jason,

You can do that with two simple non-wildcard searches:
Replace "Unscheduled" with some paragraph style or paragraph formatting
(such as alignment=right) that doesn't appear in the document, then delete
all paragraphs with that formatting (... find that formatting, replace with
nothing).

With wildcards, you could use
Find what: [!^13]@Unscheduled^13
Replace with:

^13 is the code of a paragraph mark (... ^p doesn't work with wildcards for
unknown reasons).
[!^13]@ matches any text that doesn't contain a paragraph mark.

Greetings,
Klaus

Thank you Thank you Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards,

Jason
 
Back
Top