Possible Duplicate:
How to remove all characters between “<” and “>” including “<” and “>”?
How to fix this error when I try to get all substring between [“ and ”, (have code)?
I have string:
window.google.ac.h(["new yor",[["new york times",0,[]],["new york",0,[]],["new york city",0,[]],["new york university",0,[]],["new york school",0,[]]],{"j":"13","q":"ggIoEiJIv-q5I7KyDDspEWBWyH0"}])
I want these strings:
new yor
new york times
new york city
new york university
new york school
All these strings are betwent [" and ",
Is any way to do this?
Your task can be effectivelly accomplished using regular expressions. Your regex could look like:
See it live here.
The
(?<=\[")part is so called lookbehind, you say you are looking for anything that follows[".Then you simply take any characters except
"Extract from .NET Regex Reference: