JavaScript
You're viewing a free preview. Sign in free to read every script.
Why this exists Almost every automation script is text processing: log lines, command output, version strings, config files, API responses. JavaScript has a rich set of string methods and built in regular expressions,…
JavaScript Basics: Strings, Template Literals and Regular Expressions for Log Parsing
Work with text the way tools do: string methods and their traps, template literals, split and destructuring, then regular expressions with named groups, the g-flag lastIndex trap, matchAll, greedy versus lazy, escaping variables, lookbehind and masking secrets, all with real output.
Sign in free to read this script, along with the rest of the library.
Sign in free