0

Hi, I'm new to regular expressions and I need to extract this string:

{"Name":"John","Tagline":"Hi","Title":"Developer","Company":"Iconnexus","Industry":"Comp","What I Do":"Android","Who do I want to meet":"Android Developers","WHOOZNEAR_PROFILEPIC":"content://media/external/images/media/4"}

from this one:

{"nameValues":{"Name":"John","Tagline":"Hi","Title":"Developer","Company":"Iconnexus","Industry":"Comp","What I Do":"Android","Who do I want to meet":"Android Developers","WHOOZNEAR_PROFILEPIC":"content://media/external/images/media/4"},"profileId":1,"valid":false}

What regular expression would I use to get that string?

2 Answers 2

4

Don't use regular expressions, use a JSON parser.

Sign up to request clarification or add additional context in comments.

Comments

0

Or if you're really wanting to use regex to extract that part: ^{"nameValues":(.*)$ and use the first capture group.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.