Page 1 of 1

Basic wildcard use...I think

Posted: Wed Aug 09, 2006 11:31 pm
by wbullington
I am trying to remove the following lines of text and am unable to completely remove with one statement:

11. (tab)Label (tab)FR05
(tab)600-118570(tab) LABEL BOX END CP 4 X 5 YLW
(tab)FR79
(tab)600-113168(tab) LABEL 6 X 3 BOX END YLW (113U)

Keep in mind that this is an auto numbered section... Thanks in advance for any help.

Posted: Thu Aug 10, 2006 8:53 am
by DataMystic Support
See the help file under ‘Replacing using wildcards’.

I'm not sure if you can use the '11' or not, but try this wildcard pattern:

Label*(113U)

Replace with nothing.

almost worked

Posted: Thu Aug 10, 2006 11:49 pm
by wbullington
Simon,
That string almost worked...but it left the final parenthesis ")"....I think it saw it as a wildcard. Any suggestions.

Also, it did remove the 11 and renumber everything below properly.

I see in the Help where it says:
"Any string of characters * s*d finds "sad" and "started". "

I suspect this is what you were talking about. I think it may be something to consider to add some information to the Help that talks about full lines of text...example: using the "*" wildcard in a sentence or paragraph between the first and last word will remove every thing between the two words and the words themselves.

Got it to work...but still have a question

Posted: Fri Aug 11, 2006 12:01 am
by wbullington
Simon,
Ok, I used the following 2 strings and it worked:
1. Label*(113U) Wildcards on
2. )^p Normal
My question is why did the 1st string not get the close paren?

Thanks,
Wayne

Posted: Fri Aug 11, 2006 1:52 pm
by DataMystic Support
Try escaping the ( by preceding it with \ e.g.

\(

Microsoft Word wildcards are very non-standard, but it does seem they use the (..) for grouping, although this is not documented properly.