Suppose I have a sentence and it has 2 quoted texts.
Example:
My Name 'is xyz' and I work 'on servicenow'.
I want to get only "is xyz" not "on servicenow". It will be very helpful if any one tell me how to do this.
Suppose I have a sentence and it has 2 quoted texts.
Example:
My Name 'is xyz' and I work 'on servicenow'.
I want to get only "is xyz" not "on servicenow". It will be very helpful if any one tell me how to do this.
'My Name "is xyz" and I work "on servicenow".'.split('"')[1]
Use split
function
alert('My Name "is xyz" and I work "on servicenow".'.split('"')[1]);