remove character

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
fred17

remove character

Post by fred17 »

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

Post by DataMystic Support »

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!
fred17

Post by fred17 »

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

Post by DataMystic Support »

1) Replace it with a }

2) Use pattern

^[^}]

to delete lines if the first character is not a }
Post Reply