Worked on #3 where I believe the regexp part is now complete but it needs testing
This commit is contained in:
@@ -12,4 +12,15 @@ rt.set_default_identifier('random stuff');
|
||||
|
||||
for (const m of rt.iter_matches('#Hello World!')) {
|
||||
console.log({class: m.constructor.name, identifier: m.identifier, value: m.value, captured: m.captured });
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
console.log('--=| Slicing |=--')
|
||||
|
||||
for (const m of rt.iter_matches('#Hello World!', 3, -3)) {
|
||||
//console.log(m, m.pending_index)
|
||||
console.log({class: m.constructor.name, identifier: m.identifier, value: m.value, captured: m.captured });
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user