Posts tagged with regex
Replace anchor tags with square bracket format
Published 18 December 2013 in archive with tags regex , csharp For reason I won't go into, I have just found myself needing to replace a lot of anchor tags with square bracket format anchor tags, like so: Continue reading …Remove params from URL in JavaScript
Published 3 December 2013 in archive with tags regex , javascript Let us say the param we want to remove issession
and our URL is http://www.example.com/?session=lasgfnasolgnasgn&id=500&other=100
. We can remove it like so:
Continue reading …
Regex split by spaces except inside quote marks
Published 9 November 2010 in archive with tags regex , csharp Here's a nifty little bit of code I just wrote while writing a console input handler. Sometimes you will want to split up a string by a space, but then how do you input more than one word as a single argument? You put it in quote marks, but then how do you split those separately? Like this: Continue reading …Newer Page 1 of 1 Older