URGENT HELP NEEDED

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
alok_agarwal17
Posts: 4
Joined: Thu Mar 19, 2009 7:21 am

URGENT HELP NEEDED

Post by alok_agarwal17 »

Hii All,

i am trying to search for

<td>12</td>
and replace with
<td align="center">12</td>

so i have search this with <td>[0-9]*</td>
i want this number 12 would not change and the rest would change
as numeral between the code"" is varying, i am unable to replace it .

please find a way out .

alok agarwal
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Find what: (<td)(>[0-9]*</td>)
Replace with: \1_align="center"\2

NOTE: Space character is represented with bold red underscore: "_"

To limit changes to those cells that have a value look for this instead:
Find what: (<td)(>[0-9]+</td>)

Use the following settings:
-----------------------------------------
[X] Regular expression
Replace All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Hope this was helpful.............good luck,
Bob
alok_agarwal17
Posts: 4
Joined: Thu Mar 19, 2009 7:21 am

Post by alok_agarwal17 »

Thanks Bob
Post Reply