Skip to content

Instantly share code, notes, and snippets.

@lopex
Created August 2, 2018 17:46
Show Gist options
  • Save lopex/3e631346fddc1e2621da2bedddf277c6 to your computer and use it in GitHub Desktop.
Save lopex/3e631346fddc1e2621da2bedddf277c6 to your computer and use it in GitHub Desktop.
<TREE>
<List:0x3d4eac69 (ROOT:0x1b6d3586)>
value: <String:0x42a57993 (List:0x3d4eac69)>
flags: SHARED
bytes: 'foo'
tail: <List:0x75b84c92 (NULL)>
value: <Any Char:0x6bc7c054 (List:0x75b84c92)>
tail: <List:0x232204a1 (NULL)>
value: <Any Char:0x4aa298b7 (List:0x232204a1)>
tail: <List:0x7d4991ad (NULL)>
value: <String:0x28d93b30 (List:0x7d4991ad)>
flags: SHARED
bytes: 'r'
tail: NULL
optimize: EXACT_BM
anchor: []
sub anchor: []
dmin: 0 dmax: 0
threshold length: 3
exact: [foo]: length: 3
stack used: false
templates: 0
code length: 10
[exact3:foo]@0(4) [anychar]@4(1) [anychar]@5(1) [exact1:r]@6(2) [end]@8(1)
[finish]@9(1)
PATTERRN!!! foo..r
OPTIONS: 0
onig_search (entry point): str: 0, end: 24, start: 0, range 24
onig_search (entry point): str: 0, end: 24, start: 0, range 24
forward_search_range: str: 0, end: 24, s: 0, range: 24
forward_search_range success: low: 9, high: 9, dmin: 0, dmax: 0
match_at: str: 0, end: 24, start: 9, sprev: 8
size: 24, start offset: 9
9> "foobbbb..." [exact3:foo]@0(4)
12> "bbbbbbf..." [anychar]@4(1)
13> "bbbbbfo..." [anychar]@5(1)
14> "bbbbfoo..." [exact1:r]@6(2)
14> "bbbbfoo..." [finish]@9(1)
forward_search_range: str: 0, end: 24, s: 10, range: 24
forward_search_range success: low: 18, high: 18, dmin: 0, dmax: 0
match_at: str: 0, end: 24, start: 18, sprev: 17
size: 24, start offset: 18
18> "foobar" [exact3:foo]@0(4)
21> "bar" [anychar]@4(1)
22> "ar" [anychar]@5(1)
23> "r" [exact1:r]@6(2)
24> "" [end]@8(1)
18
Region:
0: (18-24)
DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment