Aug 8th, 2020 (edited)
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dim as string n = "asdfkrisqwerty"
  2. dim as string q = "kris"
  3. for i as integer = 0 to len(n)-len(q)
  4.   print *cptr(zstring ptr,strptr(n)+i)
  5.   for j as integer = 0 to len(q)-1
  6.     if n[i+j] <> q[j] then continue for,for
  7.     print ,"found: "; chr(n[i+j]); " at position:"; i+j
  8.   next j
  9.   print
  10.   print ,"found ";q;" at position:"; i
  11.   print ,left$(n,i);"[";q;"]";mid$(n,i+len(q)+1)
  12.   exit for  
  13. next i
  14. sleep
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.