Page 1 of 1
remove character
Posted: Sun Nov 23, 2003 5:03 am
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 ??
Posted: Mon Nov 24, 2003 7:57 am
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!
Posted: Tue Nov 25, 2003 3:20 am
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
Posted: Tue Nov 25, 2003 10:06 am
by DataMystic Support
1) Replace it with a }
2) Use pattern
^[^}]
to delete lines if the first character is not a }