@Kent1Cooper wrote:
... But the only reason for the \ in:
(setq somestring "45'-4\")
would be as an escape character for the inches mark, so it isn't read as the end of the string, in which case it should be:
(setq somestring "45'-4\"")
... the \" together are considered one character. And it may not be possible to find the "position" of the \ alone, with either of my suggestions.
If that's the situation, now that I'm on an AutoCAD computer, I can confirm:
(setq somestring "45'-4\"")
returns the feet-and-inches string:
"45'-4\""
which is what the entity data entry looks like for a Text object with that feet-and-inches content:

Then:
(vl-string-position (ascii "\"") somestring)
returns the position of the inches mark:
5
But the backslash does not exist as a character on its own in the string, but only as "part of" the inches mark character. This:
(ascii "\\")
is the right way to get the character code for a backslash:
92
but:
(vl-string-position (ascii "\\") somestring)
returns
nil
Kent Cooper, AIA