Jul 03, 2017
12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2017
12:30 PM
Creator 4.1 help says:
"Line break \n Matches a platform-independent line break. In a Replace expression, inserts a line break."
However, I can't get it to work in any case, with or without regular expressions, as a find or replace. As a replace, it actually puts "\n" in the file.
A typical case is to convert a bunch of function declarations to definitions, replace all the ";\n" with "\n{\n}\n"
so that:
void f1(void); void f2(void);
becomes:
void f1(void) { } void f2(void) { }
Solved! Go to Solution.
1 Solution
Jul 04, 2017
03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2017
03:52 AM
Have a look into Creator help for "Regular expressions". As in unix the EOL is denoted by a "$" character.
Bob
1 Reply
Jul 04, 2017
03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2017
03:52 AM
Have a look into Creator help for "Regular expressions". As in unix the EOL is denoted by a "$" character.
Bob