in many languages there can be many possibilities to assing a string to a variable:
var = "some 'quoted' string"
var = 'some "quoted" string'
var = `some 'quoted "quoted" string`
var = somestring
Of course in this last variant the space is not possible and end of string is marked by some special character like ; space or > in html.
But my question regards possibility to match all these 4 situations with one regex. The worse situation is with these quotes where first character must be searched at the end of a string and with exception of escaping it.