Page 1 of 1

URGENT HELP NEEDED

Posted: Wed Mar 25, 2009 3:26 pm
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

Posted: Wed Mar 25, 2009 5:18 pm
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
-----------------------------------------

Posted: Thu Mar 26, 2009 6:43 am
by alok_agarwal17
Thanks Bob