Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Panometric
Level 5
Level 5
100 sign-ins 100 replies posted 10 solutions authored

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)  {  } 
   


 

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Have a look into Creator help for "Regular expressions". As in unix the EOL is denoted by a "$" character.

   

 

   

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Have a look into Creator help for "Regular expressions". As in unix the EOL is denoted by a "$" character.

   

 

   

Bob

0 Likes