cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

Contributor

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
Reply
1 Solution
Esteemed Contributor II

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
Reply
1 Reply
Esteemed Contributor II

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
Reply