remove character

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
fred17

remove character

Post by 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: 2217
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by 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, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads

fred17

Post by 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: 2217
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by 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, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads

Post Reply