Matching an expression in a find

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Chad M. Kovac

Matching an expression in a find

Post by Chad M. Kovac »

I need to match All instances of :

<td anyotherstuff here>any Text Can be Here</td>

?

Can I further find the above where only the Any in "Any Text Can be Here" is not capitalized and then apply TitleCase to it so that:
<td anyotherstuff here>any Text Can be Here</td>

would become:
<td anyotherstuff here>Any Text Can Be Here</td>

???
Mark Schnitzius

Re: Matching an expression in a find

Post by Mark Schnitzius »

Do a Replace (F8). Make sure "Regular Expression" is checked. Replace

<td\([^>]*\)>\(.\)\(.*\)</td>

with

<td\1>\u\2\3</td>
Chad M. Kovac

Re: Matching an expression in a find

Post by Chad M. Kovac »

That gives me "unmatched ) or }" error.. ?
Post Reply