Search & Replace Task - Search for multiple rows
Search & Replace Task - Search for multiple rows
\r - Carriage Return
\n - Line Feed
Let's say you have an XML file and you want to search for a block of text like in the example below.
- Code: Select all
<OTHER_DIAG_CODE>
<DIAG_CODE></DIAG_CODE>
<PRESENT_ON_ADMIT></PRESENT_ON_ADMIT>
</OTHER_DIAG_CODE>
You should enter the following value into the Search For attribute in the Search and Replace task:
- Code: Select all
<OTHER_DIAG_CODE>\r\n <DIAG_CODE></DIAG_CODE>\r\n <PRESENT_ON_ADMIT></PRESENT_ON_ADMIT>\r\n</OTHER_DIAG_CODE>
Note: The end of line characters may be different on different systems (they may be just line feeds '\n' instead of carriage return-line feeds '\r\n') and the file may contain tabs instead of spaces. This example uses spaces, but the special tab character '\t' may be used instead. It all depends on how the file is formatted.
- Support_Duane
- Support Specialist
- Posts: 66
- Joined: Thu Mar 05, 2009 2:49 pm
Who is online
Users browsing this forum: No registered users and 2 guests