1 Reply Latest reply on Mar 7, 2017 4:33 AM by try67

    indexOf and special characters

    mikeAtJB Level 1

      I am trying to find the index of a slash plus "v." I tried:

      if (file_list[x].indexOf("\\v.")>-1)

      but it doesn't work. If I take out the \\, it works but finds ALL instances of "v." Any ideas why it wouldn't? This is in a node.js script.