import { VerbalExpression } from "https://deno.land/x/nonstd@v0.2.2/Tests/test_deps.ts";
Define the VerbalExpression class
Methods
add(value?: string | number): VerbalExpression
Add stuff to the expression and compile the new expression so it's ready to be used.
find(value: Inputs): VerbalExpression
Alias for then() to allow for readable syntax when then() is the first method in the chain.
multiple(): VerbalExpression
value: string,
lower: number,
upper?: number,
Match the value zero or more times
range(...ranges: string[]): VerbalExpression
Matching any character within a range of characters Usage: .range( from, to [, from, to ... ] )
repeatPrevious(...quantity: number[]): VerbalExpression
Repeat the previous item exactly n times or between n and m times
replace(source: string, value: string): string
Shorthand function for the string.replace function to allow for a more logical flow
somethingBut(value: Inputs | string[] | number[]): VerbalExpression
Any character at least one time except for these characters
stopAtFirst(enable?: boolean): VerbalExpression
Default behaviour is with "g" modifier, so we can turn this another way around than other modifiers