Guest User

Untitled

a guest
Dec 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. The following doesnt work for some reason and it's really hurting my brains.
  2.  
  3. The variables contents are:
  4. ===========================
  5. myString = <script src="/mint/?js" type="text/javascript">
  6. matchedString = ?js"
  7.  
  8. I'm finding the range:
  9. ======================
  10. NSRange matchRange = [[myString string] rangeOfString:matchedString options:NSLiteralSearch];
  11.  
  12. The output is as follows:
  13. =========================
  14.  
  15. matchRange.location = 0.000000;
  16. matchRange.length = 0.000000;
Add Comment
Please, Sign In to add comment