I have a string in the form of
Foo
"Foo"
"Some Foo"
"Some Foo and more"
I need to extract the value Foo which is in quotes and can be surrounded by any number of alphanumeric and white space characters. So, for the examples above I would like the output to be
<NoMatch>
Foo
Foo
Foo
I have been trying to get this to work, and this is the pattern I have so far using lookahead/lookbehind for quotes. This works for "Foo" but not others.
(?<=")Foo(?=")
FutherFurther expanding this to
(?<=")(?<=.*?)TimesheetFoo(?=.*?)(?=")
does not work.
Any assistance will be appreciated!