Finding a string, and keeping the number...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply

Finding a string, and keeping the number...

Post by jevticpd » Tue Apr 26, 2005 2:31 pm

Hello all,

If I have this:

test{123} or test{345}

I want to match the text and the braces, but preserve the numeric portion of the string.

so, my search would be:

but what would I put in the replace section? Whould I use a varable?



User avatar
DataMystic Support
Site Admin
Posts: 2237
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Post by DataMystic Support » Wed Apr 27, 2005 6:26 pm

No, your search would be

test{[ capture( 1+ digits ) ]}

Replace with


Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads

Post Reply