UNIX Numbers

General questions about using TextPad

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

Post Reply
swilsher
Posts: 4
Joined: Sat Jan 28, 2006 4:47 pm

UNIX Numbers

Post by swilsher »

I often use textpad to copy column data from UNIX reports and paste into Excel. Is there a way to convert the negative sign in the back of the number as UNIX does to the front as Excel understands it. Example: 6.23- would become -6.23.

Steve
Steve
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Replace
([0-9.]+)-
with
-\1

Regular expressions checked
Posix Regular expression
swilsher
Posts: 4
Joined: Sat Jan 28, 2006 4:47 pm

Post by swilsher »

I'm not sure I understand. I tried what you said, but it comes back with, "Cannot find literal string"
Steve
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

There is a box on the search and replace dialogue that says Regular Expression. Check it.

Before you do that though, go into Configure, Preferences -> Editor and check the last box. It mentions POSIX.
I choose to fight with a sack of angry cats.
swilsher
Posts: 4
Joined: Sat Jan 28, 2006 4:47 pm

Post by swilsher »

Got it. Thanks
Steve
Post Reply