I'm getting changing results from a method. It is everytime a String, but at the beginning of every String is written "String(xxx) "Text of String... ". The xxx depends on the number of characters inside of the String. I tried using regex to cut everything away before first appearance of " :
(result.replace(/^.+?(\") /, ''))
But I'm not sure if I used it correctly. I would also accept other approaches, which delete the beginning of the String in every case (independently of the length of the string).
Example:
return String: 'string(18) "This is an example"'
And I just want to get the String without the stuff at the beginning, so:
'This is an example'
But the return (and therefore the number in the parenthesis) can vary. I want to cut this out in every case.
var s = s.replace(/^.+? (\")/, '')"at the end.replace(/\"$/, "")s.split('"')[1];