| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
String manipulation and processing operations with regex and URL encoding support.
28 words
["hello" " " "world"] CONCAT
"hello world" STR-LENGTH
"hello world" " " SPLIT
["hello" "world"] " " JOIN
"Hello" LOWERCASE
Stack Effect: ( -- char:string )
Newline character
Stack Effect: ( -- char:string )
Tab character
Stack Effect: ( item:any -- string:string )
Convert item to string. Records render as JSON; arrays comma-join their stringified elements.
Stack Effect: ( string:string -- result:string )
Keep only ASCII characters (< 256)
Stack Effect: ( strings:string[] -- result:string )
Concatenate an array of strings into one string. For two strings: write [s1 s2] CONCAT. For arrays of arrays, use FLATTEN.
Stack Effect: ( strings:string[] sep:string field:number -- field_values:any[] )
Split each string on sep and pick the field-th column (bash cut). Out-of-range yields null.
Stack Effect: ( str:string suffix:string -- bool:boolean )
Returns true if str ends with suffix.
Stack Effect: ( strings:string[] pattern:string -- matches:string[] )
Keep only strings matching the regex pattern (bash grep).
Stack Effect: ( strings:string[] pattern:string -- non_matches:string[] )
Keep only strings NOT matching the regex pattern (bash grep -v).
Stack Effect: ( strings:string[] sep:string -- result:string )
Join strings with separator
Stack Effect: ( str:string -- lines:string[] )
Split string on newline. Equivalent to /N SPLIT.
Stack Effect: ( string:string -- result:string )
Convert string to lowercase
Stack Effect: ( string:string pattern:string -- match:any )
Match string against regex pattern
Stack Effect: ( string:string pattern:string -- matches:any[] )
Find all regex matches in string
Stack Effect: ( str:string pattern:string -- bool:boolean )
Returns true if str matches the regex pattern. Predicate-only — does not return the match. (jq's test.)
Stack Effect: ( string:string pattern:string replace:string -- result:string )
Replace all regex matches of pattern with replace. Same as classic REPLACE behavior.
Stack Effect: ( string:string text:string replace:string -- result:string )
Replace all literal occurrences of text with replace. For regex matching use RE-REPLACE.
Stack Effect: ( strings:string[] pattern:string repl:string -- strings:string[] )
Apply RE-REPLACE to each string in the array (bash sed s/pattern/repl/g).
Stack Effect: ( str:string start:number end:number newval:string -- result:string )
Replace the substring [start, end) of str with newval and return the result (a splice).
Stack Effect: ( string:string sep:string -- items:any[] )
Split string by separator
Stack Effect: ( str:string prefix:string -- bool:boolean )
Returns true if str begins with prefix.
Stack Effect: ( str:string -- length:number )
Length of a string in characters (0 if null/undefined).
Stack Effect: ( string:string -- result:string )
Trim whitespace from string
Stack Effect: ( str:string start:number end:number -- substring:string )
Substring of str from start (inclusive) to end (exclusive), by character index. Indices clamp like String.slice (negatives count from the end).
Stack Effect: ( str:string prefix:string -- result:string )
Strip prefix from start of str if present (otherwise return str unchanged).
Stack Effect: ( str:string suffix:string -- result:string )
Strip suffix from end of str if present (otherwise return str unchanged).
Stack Effect: ( lines:string[] -- str:string )
Join an array of lines with newlines. Equivalent to /N JOIN.
Stack Effect: ( string:string -- result:string )
Convert string to uppercase
| Back | FazBrowse Home | New Git URL |