Hello,
How to replace all the "FS" (value 28) symbols in Notepad++?
I cannot copy or paste them...
Many thanks,
Select one of them and then open the Replace dialog (Ctrl+H).
Hi Robert,
It's quite easy with regular expressions !
Set the "Regular expression" search mode.
Type \x1C in the SEARCH dialog ( HEXA value of 28 ) .
\x1C
Leave the REPLACEMENT dialog EMPTY.
Click on the "Replace All" button => All the FS character ( "File Separator" ) are removed, at once.
I did the test on your attached file and it's all OK !
Cheers,
guy038
P.S. :
You will find good documentation, about the new PRCE Regular Expressions, used by N++, since the 6.0 version, at the TWO addresses below :
N++
6.0
http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html
The FIRST link concerns the syntax of regular expressions in SEARCH
The SECOND link concerns the syntax of regular expressions in REPLACEMENT
BTW : Your S/R works, as well, with a version older than 6.0 !
Thank you Guy, you are a genius.
Merci!
Hello,
How to replace all the "FS" (value 28) symbols in Notepad++?
I cannot copy or paste them...
Many thanks,
Last edit: Robert Hall 2013-04-29
Select one of them and then open the Replace dialog (Ctrl+H).
Hi Robert,
It's quite easy with regular expressions !
Set the "Regular expression" search mode.
Type
\x1C
in the SEARCH dialog ( HEXA value of 28 ) .Leave the REPLACEMENT dialog EMPTY.
Click on the "Replace All" button => All the FS character ( "File Separator" ) are removed, at once.
I did the test on your attached file and it's all OK !
Cheers,
guy038
P.S. :
You will find good documentation, about the new PRCE Regular Expressions,
used by
N++
, since the6.0
version, at the TWO addresses below :http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html
The FIRST link concerns the syntax of regular expressions in SEARCH
The SECOND link concerns the syntax of regular expressions in REPLACEMENT
BTW : Your S/R works, as well, with a version older than 6.0 !
Last edit: THEVENOT Guy 2013-04-29
Thank you Guy, you are a genius.
Merci!