View Single Post
Old 10-07-2014, 03:19 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,098
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by MerlinMama View Post
Well, it seems to work great! I'm not that good at most of the wildcards (can never figure out what the ? is used for. I can figure out the 'long' way, or I need it spelled out.

Unless I know for certain what will come up (and there is often other text with <strong> that I don't want changed) I don't usually use 'Replace All' so this works well for me. I only had one file to work with at the moment, but I'm waiting on a few more, so I'll have a better idea.

Still, it seems to be what I'm looking for.

Thank you so much!
? = not greedy (don't try for more )

Your original pattern only looked for Letters. A string with Anything else would have failed.

Brute force can work or it can grab way too much
IMHO try and include a 'limiter' (only appears in that string) in your pattern
theducks is offline   Reply With Quote