- The first Regular Expression Library on the Web!

Please support RegExLib Sponsors


Regular Expression Details

Title Test Find Pattern Title
Trim Inside. This pattern can be used with a replace value of "$1 " to remove multiple consecutive spaces between characters and replace with a single space. Trailing and leading spaces are NOT altered.
Too Many spaces.
No extra spaces | No Extra spaces Inside
Author Rating: Not yet rated. Michael Ash
Your Rating
Bad Good

Enter New Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: uggs canada
Name: uggs canada
Date: 12/13/2012 9:33:26 PM
My wife recently bought a pair of which she seems intent on wearing until they self destruct.<a href="">coach outlet online</a> She wanted to know how she could clean then so she set about researching the best ways and also tried a <a href="">ugg canada</a> of experimentation..this is the article she wrote following the reseach.You've now got your first pair of Ugg boots and after wearing them for a while you may find that they have started to lose that new look about them. In this article we are going to provide you with some tips on how to clean your <a href=""><strong>uggs</strong></a> boots so that they stay looking as good as new.Yes these <a href=""><strong>uggs canada</strong></a> are extremely comfortable to wear and because of this you may find yourself wearing them alot. Which is all well and good until they start to get dirty and start to smell. Certainly one way of making sure that your <a href="">ugg boots canada</a> remaining look good is by using a specialist cleaning <a href="">coach outlet</a> which has been designed for use on leather and suede items

Title: unsecable space
Name: pascal
Date: 11/5/2006 2:35:01 PM
(7x1 000)+(4x100)+(8x10)+(4x1)+(1x0.1)+(8x0.01)+(6x0.001) how to trim unsecable space ?

Title: RE: Doesn't removes tab+space combinations
Name: Michael Ash
Date: 5/17/2005 10:35:08 AM
First /s matches /s only There being no mention in the description of removing tabs nor was the intent to remove all whitespaces. That would be a different regex. It would not be hard to modify this regex to trim the space around the tabs if that what was desired.

Title: Doesn't removes tab+space combinations
Name: Sam
Date: 5/17/2005 7:38:02 AM
Although /s denotes Matches any non-white-space character, tab space combination doesn't matches. example string:"this is a test"

Title: RE:Trimming Inside
Name: An Phu
Date: 2/11/2005 6:38:08 PM
Handy regex!

Title: Samples altered
Name: Michael Ash
Date: 12/29/2004 2:31:49 PM
The extra spaces are removed in the sample match and none match display so please use your own samples.

Copyright © 2001-2024, | ASP.NET Tutorials