Just to start with an example
I like text like this
to be changed into this:
so I use hit ctrl+h to bring up replace and there enabled RegExp to
look for: \\0 and
replace with: \n
But \n is just replaced by '\n' and not with s new line as I intended.
Well when I do
replace with: \x0d\x0a
it works.
However I'm a little a fan of BC and find it a little odd that BC4 RegExp somehow doesn't have '\n' defined.
Its a very common Metachar and its a little irritating if it is not working.
BC4 knows '\t' and '\0'...
-> Even if '\0' is not mentioned in the BC help file(<- I only checked the german ones) about regulary expressions .
...but why not '\n' ? (...and not to forget '\r' what is carrier return)
Is there a special reason why this is missing or disabled?
I like text like this
Code:
ATA Interface\0BIOS Services\0DOS Services\0DOS ASPI
Code:
ATA Interface BIOS Services DOS Services DOS ASPI
look for: \\0 and
replace with: \n
But \n is just replaced by '\n' and not with s new line as I intended.
Code:
ATA Interface\nBIOS Services\nDOS Services\nDOS ASPI
replace with: \x0d\x0a
it works.
However I'm a little a fan of BC and find it a little odd that BC4 RegExp somehow doesn't have '\n' defined.
Its a very common Metachar and its a little irritating if it is not working.
BC4 knows '\t' and '\0'...
-> Even if '\0' is not mentioned in the BC help file(<- I only checked the german ones) about regulary expressions .
...but why not '\n' ? (...and not to forget '\r' what is carrier return)
Is there a special reason why this is missing or disabled?
Comment