.Text="*\**"

V

vjp2.at

If I had a string

*this*is what*it looks*like when*I*shout*

would "*\**" pick it up?



(I do a lot of writing in plain text form and need to import it into
MS Word recently. The footnote VBA script was a lifesaver. This is
not as essential, but I'm looking ahead. There are about three or four
more such scripts [<Heading>, _Italic_, *Bold*, maybe {Comment}] I
suspect might come in hand in the next three months)


- = -
Vasos-Peter John Panagiotopoulos II, Columbia'81+, Bio$trategist
BachMozart ReaganQuayle EvrytanoKastorian
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
 
K

Klaus Linke

Hi again Vasos-Peter John,

You want to do a wildcard search, right?

The wildcard * matches anything at all, so it's usually better to avoid it.
It's simply too risky, since it could match lots of text accidentally.
That wildcard in most cases shouldn't be used at the start or at the end of
an expression:
At the start, it would probably match anything at all starting at the
current cursor position, and at the end it's ignored.

If you want to match anything from a star to the next, you could try
Find what: \*[!^13]@\*

Matches would be limited to a paragraph.

That would match "this", "it looks" and "I" in your sample. The last
star/asterisk would be ignored.
But if your cursor would happen to be in the word "this", the search would
match "is what", "like when" and "shout":
The matching always continues again after the last matched text.

Greetings,
Klaus
 

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

Similar Threads


Top