Lookbehind in Regex searches

Posted by: Rick Strahls WebLog, on 03 Oct 2009 | View original | Bookmarked: 0 time(s)

Ive said it before Regex is not one of my strengths and although I use Regex expression quite frequently in code Im in fear (literally) of using longer Regex expressions, fully expecting to look at my own Regex code and not remember what it does10 minutes later :-}. Ok, not quite so bad, but not completely off the mark. Today I had what is a fairly simple problem I needed to match a JSON string and check for invalid quote characters in the string. For example: JSON String: \"that has legal...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1487 | Hits: 53

Similar Posts

  • Named Formats Redux more
  • XM Radio Player Part II : Scraping more
  • HttpHandler To Assist In Preventing Image Leeching more
  • ASP.NET: REGEX Parse the RSS / ATOM Feed Url from a Page more
  • The problem with intellisense more
  • Match substrings of string seprated by spaces while keeping substring groups enclosed by certain character(s) together. more
  • How many ways to do a String Replace? more
  • Remove "WWW." from URLs in ASP.NET more
  • .NET Regex bug causes application to hang!!! more
  • Regex 101 Discussion I9 - Count the number of matches. more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD