Page 1 of 1

Small Caps and Large Caps

Posted: Mon Sep 25, 2006 2:52 am
by redbulls
hi,

How to find and replace LARGE CAPS with <lc>LARGE CAPS</lc> and SMALL CAPS TO <sc>SMALL CAPS</sc>

help me

Posted: Mon Sep 25, 2006 12:11 pm
by DataMystic Support
Use an EasyPattern search/replace,

[ capture( '<', optional( '/' ) ), 'lc>' ]

Replace with

$1sc>

Will you be purchasing the Web version or Pro?

Posted: Wed Sep 27, 2006 3:03 am
by redbulls
I am currently using trial verion. I will buy it ASAP. This is really a nice piece of software.

Posted: Wed Sep 27, 2006 3:24 am
by redbulls
That did not work.

Have to find:
LARGE CAPS
Should not find:
<sc>LARGE CAPS</sc>
And replace it with:
<lc>LARGE CAPS<lc>



It is impossible to find SMALL CAPS and italics. right?

Posted: Wed Sep 27, 2006 11:19 am
by DataMystic Support
Ah - I see. Try this perl pattern:

([A-Z]+?( [A-Z]+?)+?)

Replace with
<lc>$1</lc>

Ensure Match Case is ENABLED.

For Small Caps, use

([A-Z][a-z]*?)( [A-Z][a-z]*?)*?

Replace with

<lc>$1</lc>

You may have to add other restrictions if this is not the only text present. Drop us an email with sample data and we can help further.

Posted: Wed Sep 27, 2006 5:58 pm
by redbulls
Thanks.