# lastIndexOf slash?

**URL:** <https://forum.kirupa.com/t/lastindexof-slash/123059>\
**Category:** Uncategorized\
**Created:** [September 20, 2004, 2:02am UTC](https://forum.kirupa.com/t/lastindexof-slash/123059 "2004-09-20T02:02:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [September 20, 2004, 2:02am UTC](https://forum.kirupa.com/t/lastindexof-slash/123059/1 "2004-09-20T02:02:51Z")

</div>

Hello,

Im trying to use the lastIndexOf function to discover where the last “” is located in my string… It seems to have a pb with the \ symbol…  
I tried mystring.lastIndexOf(’""’) and every other possibleway, it always returns -1

Any ideas?
