To add on a few things that others have said in this thread:
- Another good online regex tool is https://regex101.com/ I really like the testing tools it provides.
- Although it's not exactly what you need, Word does have an ability to search by format (it's under the Select menu on the Home tab of the ribbon).
Kate Deibel, PhD | Web Applications Specialist
Information Technology Services
University of Washington Libraries
http://staff.washington.edu/deibel
--
"When Thor shows up, it's always deus ex machina."
-----Original Message-----
From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of Matt Sherman
Sent: Tuesday, July 7, 2015 9:45 AM
To: [log in to unmask]
Subject: Re: [CODE4LIB] Regex Question
Thanks everyone, this really helps. I'll have to work out the italicized stuff, but this gets me much closer.
On Tue, Jul 7, 2015 at 12:43 PM, Kyle Banerjee <[log in to unmask]>
wrote:
> Y'all are doing this the hard way. Word allows regex replacements as
> well as format based criteria.
>
> For this particular use case:
>
> 1. Open the find/replace dialog (CTL+H)
> 2. In the "Find what" box, put (<*>) -- make sure the option for "Use
> Wildcards" is selected, and for the format, specify italic
> 3. For the"Replace box," just put \1 and specify All caps
>
> And you're done
>
> kyle
>
> On Tue, Jul 7, 2015 at 9:32 AM, Thomas Krichel <[log in to unmask]>
> wrote:
>
> > Eric Phetteplace writes
> >
> > > You can match a string of all caps letters like "[A-Z]"
> >
> > This works if you are limited to English. But in a multilingual
> > setting, you need to watch out for other uppercases, such as
> > крихель vs КРИХЕЛЬ. It then depends in the unicode implementation
> > of your regex application. In Perl, for example, you would use
> > [[:upper:]].
> >
> >
> > --
> >
> > Cheers,
> >
> > Thomas Krichel http://openlib.org/home/krichel
> > skype:thomaskrichel
> >
>
|