remove character

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

fred17

remove character

Postby fred17 » Sun Nov 23, 2003 5:03 am

hello
i have 2 questions

first i want remove all character after this } to the end of the line
second i want kill all line with the first character not {

any ideas ??

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

Postby DataMystic Support » Mon Nov 24, 2003 7:57 am

1) Search for this pattern:
\}[^\r\n]*?

Replace with nothing.

2) Use the Remove Menu\Remove lines matching with a pattern of
\}

You could use the web-based wizard for this one.

Simple!
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

fred17

Postby fred17 » Tue Nov 25, 2003 3:20 am

{123456789abcdef} 1. h5+ Kh6 2. Re6+ Kg7 3. h6+

result with
1) Search for this pattern:
\}[^\r\n]*? (patern perl)


result


{123456789abcdef}h6+

i want {------------------------------}

why its not good ??

for the question 2 i want delete ligne if the "first carater" is not equal
at {

thanks for your answers

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

Postby DataMystic Support » Tue Nov 25, 2003 10:06 am

1) Replace it with a }

2) Use pattern

^[^}]

to delete lines if the first character is not a }
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest