NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to insert new line in the replace text field


Joined: 20 Oct 2011
Posts: 7
Reply with quote
When performing a find and replace, how do I include within the replace text a special character such as new line?

For example, I would like to find the string "><" and replace it with something like ">\n<". But this inserts the literal characters \n between the angle brackets. I tried checking the Regular Expression check box but it did not seem to make any difference.

I am using PhpED version 6.1. What am I doing wrong?

Thanks
View user's profileFind all posts by kbullSend private message
Guru master

Joined: 24 Jul 2009
Posts: 716
Reply with quote
Turn on multi-line search then you can just enter your new lines. You can still use regular expressions, but might not need to anymore.
View user's profileFind all posts by plugnplaySend private message


Joined: 20 Oct 2011
Posts: 7
Reply with quote
That did it. Thanks.
View user's profileFind all posts by kbullSend private message


Joined: 20 Oct 2011
Posts: 7
Reply with quote
I guess there is one small problem with this, now I have to use my mouse to move from the find field to the replace field and then to select 'OK'. Even when I tab with focus in the field it puts in a tab character. I understand why it behaves this way, just seems like using a regular expression syntax for special characters would allow the user to not have to move from keyboard to mouse to move between fields and to select the action button.

Just saying....
View user's profileFind all posts by kbullSend private message


Joined: 18 May 2006
Posts: 61
Reply with quote
Both in singleline and multiline mode you may switch to "Text to find" and "Replace with" fields by pressing Alt-T and Alt-R respectively.

FYI: You can switch between singleline and multiline modes by pressing Alt-L shortcut.
View user's profileFind all posts by mdegtyarevSend private message
How to insert new line in the replace text field
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic