RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Removes New Lines from a String(s)
Expression
(.+[^\n]+)\r\n([^\n]+)
Description
This will remove all \n (new line carriages) in a string(s) and combine multiple sentences into one. Replacement Syntax: \1 \2 Tested in Notepad++
Matches
Any string that does not start with \n and has a \r\n between.
Non-Matches
[^\n]
Author Rating: Not yet rated. Brad
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials