Link to home
Create AccountLog in
Avatar of rahulkothari
rahulkothari

asked on

Regexpression really stuck ---

I have a string literal like this


String s = "function(ab,'ac',ad,'gr')";

Now I want to run a reg expression so that I can only get ab and ad (i.e. only the strings that are enclosed in the single quotes). I donot want to get values which are wrapped by single quote.

Thanx in advance ...

EK
ASKER CERTIFIED SOLUTION
Avatar of durgaprasad_j
durgaprasad_j

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of rahulkothari
rahulkothari

ASKER

thanx even tought it was not accurate it gave me enough clues ... that was not of work ... beleive me for this one ...

RK
ok i believe you.
Thanks for accepting