User:Ferretwings/Regex learning & testing

From Terraria Wiki
Jump to navigation Jump to search


14 y y

var:a = This is a test only..
want to return the first 19 chars
var:b = This is a test only.
Char # 19 is "y"
+1 --next space, beginning with current char
+1 --if it's a space, the next space
14+1 --the last space

dplreplace

  • .This is a test only.. --
  • .This is a test only.. --
  • .This is a test only.. --
  • . is a test only.. -- ..
  • .This is a test only.. -- . test only..
  • .This is a test only.. -- . test only..
  • . test only.. -- . test only..
  • .st only.. -- removes the first # chars
  • . is a test only.. -- . is a test only..
  • . a test only.. -- . a test only..
  • . test only.. -- . test only..
  • . test only.. -- . test only..
  • .st only.. -- removes the first # chars
  • . is a test only.. -- . is a test only..
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • ===
  • .. -- ..
  • .This is a test only.. -- returns everything
  • .Thisisatestonly. -- strips the nonalphanumerics
  • .. -- ..
  • .only.. -- .only..
  • .This a only.. -- .This a only..
  • .Thisaonly.. -- .Thisaonly..
  • .only.. -- .only..
  • .This is a . -- .This is a .
  • .This is a test . -- This is a test .
  • .This is a test. -- This is a test.
  • .This is a . -- This is a .
  • .. -- ..
  • .only.. -- .only..
  • .only. -- .only.
  • .. -- ..
  • .This is a . -- .This a .
  • .This is a test . -- .This is a test .
  • .This is a test. -- .This is a test.
  • .This is a . -- .This is a .
  • ===
  • .This. -- .This.
  • .This is a test only.. -- returns everything
  • .Thisisatestonly. -- strips the nonalphanumerics
  • .This. -- .This.
  • .This.. -- .This..
  • .This is test.. -- .This is test..
  • .Thisistest.. -- .Thisistest..
  • .This.. -- .This..
  • .This is a test. -- .This is a test.
  • .This is a test only. -- returns everything
  • .This is a testonly. -- returns everything
  • .This is a test. -- .This is a test.
  • .This. -- .This.
  • .This.. -- .This..
  • .This. -- .This.
  • .This. -- .This.
  • .This is a test. -- .This is a test.
  • .This is a test only. -- returns everything
  • .This is a testonly. -- returns everything
  • .This is a test. -- .This is a test.
  • ===
  • .only.. -- .only..
  • .This is a test only.. -- returns everything
  • .Thisisatestonly.. -- strips the spaces
  • .only.. -- .only..
  • .only.. -- .only..
  • .This a only.. -- .This a only..
  • .Thisaonly.. -- .Thisaonly..
  • .only.. -- .only..
  • .This is a test only.. --returns everything
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • .only.. -- .only..
  • .test only.. -- .test only..
  • .testonly.. -- .testonly..
  • .only.. -- .only..
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • .This is a test only.. -- returns everything
  • ===
  • .This. -- .This.
  • .This is a test only.. -- returns everything
  • .Thisisatestonly.. -- strips the spaces
  • .This. -- .This.
  • .This. -- .This.
  • .This is test. -- .This is test.
  • .Thisistest. -- .Thisistest.
  • .This. -- .This.
  • .This is a. -- .This is a.
  • .This is a test. -- returns everything
  • .This is atest. -- returns everything
  • .This is a. -- .This is a.
  • .This. -- .This.
  • .This only.. -- .This only..
  • .Thisonly.. -- .Thisonly..
  • .This. -- .This.
  • .This is a. -- .This is a.
  • .This is a test. -- returns everything
  • .This is atest. -- returns everything
  • .This is a. -- .This is a.
  • ===
  • .This is a test only.
  • .
  • .This is a test only.