Skip to content

Latest commit

 

History

History
338 lines (238 loc) · 2.9 KB

seek-word.md

File metadata and controls

338 lines (238 loc) · 2.9 KB

1

behavior <- character

console.log()
^ 0

1 word-end

up

  • .seek.wordEnd
console.log()
^^^^^^^ 0

1 word-end x

up

  • .seek.wordEnd
console.log()
       ^ 0

1 word-end x x

up

  • .seek.wordEnd
console.log()
        ^^^ 0
1 word-end x x word-start-backward

up

  • .seek.word.backward
console.log()
        |^^ 0
1 word-end x x word-start-backward x

up

  • .seek.word.backward
console.log()
       ^ 0
1 word-end x x word-start-backward x x

up

  • .seek.word.backward
console.log()
|^^^^^^ 0

1 word-end-extend

up

  • .seek.wordEnd.extend
console.log()
^^^^^^^ 0

1 word-end-extend x

up

  • .seek.wordEnd.extend
console.log()
^^^^^^^^ 0

1 word-end-extend x x

up

  • .seek.wordEnd.extend
console.log()
^^^^^^^^^^^ 0

1 word-end-extend x word-end

up

  • .seek.wordEnd
console.log()
        ^^^ 0

2

behavior <- character

foo

bar
^ 0

2 word-start-backward

up

  • .seek.word.backward
foo
|^^ 0

bar

3

Now with spaces.

behavior <- character

aaa bbb ccc ddd
      ^ 0

3 word-end

up

  • .seek.wordEnd
aaa bbb ccc ddd
       ^^^^ 0

3 word-end x

up

  • .seek.wordEnd
aaa bbb ccc ddd
           ^^^^ 0

3 word-end x word-start-backward

up

  • .seek.word.backward
aaa bbb ccc ddd
            |^^ 0

3 word-end x word-start-backward-2

up

  • .seek.word.backward { count: 2 }
aaa bbb ccc ddd
        |^^^ 0

4

aaa bbb
   ^ 0
  ccc
dd

4 word-start

up

  • .seek.word
aaa bbb
    ^^^ 0
  ccc
dd

4 word-start word-end

up

  • .seek.wordEnd
aaa bbb
  ccc
^^^^^ 0
dd

5

behavior <- character

foo x bar.baz ex
^ 0
la

5 word-end

up

  • .seek.wordEnd
foo x bar.baz ex
^^^ 0
la

5 word-end x

up

  • .seek.wordEnd
foo x bar.baz ex
   ^^ 0
la

5 word-end x x

up

  • .seek.wordEnd
foo x bar.baz ex
     ^^^^ 0
la
5 word-end x x x

up

  • .seek.wordEnd
foo x bar.baz ex
         ^ 0
la

6

behavior <- character

a b c d
  ^ 0

6 word-end

up

  • .seek.wordEnd
a b c d
   ^^ 0

6 word-start

up

  • .seek.word
a b c d
   ^ 0

6 word-start-backward

up

  • .seek.word.backward
a b c d
|^ 0

6 word-end-extend

up

  • .seek.wordEnd.extend
a b c d
  ^^^ 0

6 word-start-extend

up

  • .seek.word.extend
a b c d
  ^^ 0

6 word-start-extend-backward

up

  • .seek.word.extend.backward
a b c d
|^^ 0