Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
9k views

Extracting JSON from string using regex

I need to get the value of item inside of this string and parse it as JSON. I've got some working code but I feel like it could be optimized (a lot) and cleaned up (a lot). Any tips or pointers are ...
yourfavorite's user avatar
6 votes
1 answer
1k views

C# Regex to extract bug ID from Bugzilla JSON response

I have written a series of Regex.Replace() lines to take an input like {"id":36} and convert it to ...
Matthew Verstraete's user avatar
6 votes
2 answers
8k views

Converting JSONP to JSON: Is this Regex correct?

I'm fetching a string that is JSONP, and looking to convert it to JSON. I'm using the following regular expression for matching (for removal) the padding on the JSON. ...
Yahel's user avatar
  • 163