How can I replace a typed character (^) with an actual hard carriage return?
Regards,
Chuck Billow
Replacing Characters with [Return}s
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
It's hidden under configuration settings:
( ) { } |
Look in TextPad's help, under How To... | Find and Replace Text | Use Regular Expressions. Posix syntax often leads to more readable regular expressions.
In fact, it doesn't make any difference with this particular regular expression (\^), as it doesn't use any of:Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
( ) { } |
Look in TextPad's help, under How To... | Find and Replace Text | Use Regular Expressions. Posix syntax often leads to more readable regular expressions.
I thought this is what I needed as well, but it's not working the way I expected it.
I have a file someone gave me (uncooperative someone) and it's record length is 1MB. It's full of sql insert statements, but not in the format that I need in order to process in my db.
I used textpad to format the lines into the statements I need, however, I need to do a global replacement of a character - ; with a ;<nl> in order to break these huge lines into multiple lines.
Basically I need to have the program do the equivalent of me hitting the RETURN key right after each ; encountered.
I must be missing something on the file format or encoding when I save this file after attempting to replace ; with ;\n .
Any help is appreciated.
I have a file someone gave me (uncooperative someone) and it's record length is 1MB. It's full of sql insert statements, but not in the format that I need in order to process in my db.
I used textpad to format the lines into the statements I need, however, I need to do a global replacement of a character - ; with a ;<nl> in order to break these huge lines into multiple lines.
Basically I need to have the program do the equivalent of me hitting the RETURN key right after each ; encountered.
I must be missing something on the file format or encoding when I save this file after attempting to replace ; with ;\n .
Any help is appreciated.
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm