473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Find and replace (insert Return character)

I have a whole lot of entries listed as:
<image><filename>
and would like to search and replace so the end result is so:
<image>
<filename>
i.e. there is a return/enter after <image>

I am using Notepad++). I highlighted text on two lines and when I tried
Search and Replace (Ctrl+H), I get the "square" which represents
Return/Enter in the search box but I cannot copy it to the replace box.
Anyone know how I can "type" the return character in a text editor?
Thanks.
Feb 6 '08 #1
3 26100
©® wrote:
I have a whole lot of entries listed as:
<image><filename>
and would like to search and replace so the end result is so:
<image>
<filename>
i.e. there is a return/enter after <image>

I am using Notepad++). I highlighted text on two lines and when I tried
Search and Replace (Ctrl+H), I get the "square" which represents
Return/Enter in the search box but I cannot copy it to the replace box.
Anyone know how I can "type" the return character in a text editor?
With jEdit there is a regular expression option in the search/replace
dialog and then \n inserts a line break. Check whether Notepad++ allows
that too.


--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 6 '08 #2
If you're using a text-based tool to edit the XML, the fact that it's
XML is sorta irrelevant; that's a question of what your particular tool
can do.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Feb 6 '08 #3
I got an answer in the Notepad++ forum:

In the replace area, type

\1\r\n\2 -- \1 is the first group, \r\n is a carriage return and a new
line, \2 is the second group.

Click Replace All.
Feb 6 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JackRazz | last post by:
I'm trying to use Visual Studio's Find/Replace to match VB declarations. This RegEx works fine in Regulator: ...
2
by: Paul | last post by:
Hello, Could someone remind me of how to insert a line-feed/return character, please? I have used it before, but I can't recall what it is. What I'm looking for IS NOT an escape character...
2
by: :\\\\derian | last post by:
anyone know where i could find the equivalent of the find / replace windows control for my project? :\\derian
2
by: scorpion53061 | last post by:
This excel find/replace code works great under Excel 2003 but bombs with an error (pasted below the code) in Excel 2000. Can anyone suggest an alternative to make both happy? I am using vb.net...
0
by: D Brown | last post by:
Does anyone know why my .NET development would hang / freeze when performing a Global Find / Replace on all files? I have a large ASP.NET VB Application. I have left the machine for 24 hours but...
0
by: vipal.keshwala | last post by:
I just migrated the access data base onto a new server but when I open the application up and click on find/replace in the find what field I try to right click a paste some information, but the...
2
by: no.mail.pls | last post by:
Hi, How can i replace a backslash character in a string? The following does not work: $wd = strtr($wd, "\", " "); TIA
8
by: John Pye | last post by:
Hi all I have a file with a bunch of perl regular expressions like so: /(^|)\*(.*?)\*(|$)/$1'''$2'''$3/ # bold /(^|)\_\_(.*?)\_\_(|$)/$1''<b>$2<\/ b>''$3/ # italic bold...
4
by: Elliot Fraval | last post by:
Hi All, Environment is VBA code in Access 2007. I am having some problems performing a find and replace on text that originates from a memo field in a table. The code is supposed to take...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.