A practical example of parsing names with an optional middle name, using a positive conditional block.
A practical example of retrieving an expression's parent uCalc instance to dynamically add a formatting rule before evaluation.
A practical example parsing multiple command variations for different intents, such as playing music and setting alarms.
A practical example sanitizing user input by removing script tags and normalizing excess whitespace in a single pass.
A practical example sanitizing user input by removing script tags and normalizing excess whitespace in a single pass.
A practical example showing how to inspect multiple items and display their type properties, distinguishing between simple and compound types.
A practical example showing how to iterate through all matches and print the name of the rule that generated each one for debugging.
A practical example showing how to manage two separate uCalc instances with conflicting variable names.
A practical example showing how to remap a match found in a substring back to the global coordinates of the original document.
A practical example showing the difference between counting all matches and counting matches for a specific rule.
A practical example that calculates line-item totals for a list of products by capturing quantity and price.
A practical example that extracts all `` tags, but only from within a specific `` section of an HTML document.
A practical example that iterates through all words in a sentence to find the one with the greatest length.
A practical example that transpiles a multi-line legacy script, including comments, variables, and a conditional statement with a nested action.
A practical example using `MatchesOption::FocusableOnly` to retrieve results only from rules marked as focusable.
A practical example using an error handler to provide a custom, user-friendly message when an invalid operation occurs.
A practical example using Clone() to create a specialized parser from a base template, demonstrating rule inheritance.
A practical example using the fluent interface of `Set...` methods to configure multiple properties of a rule in a single chained statement.
A practical example where a 'data' rule is invalidated if it appears too few times, while a 'header' rule is unaffected.
A practical implementation of the code refactoring utility, safely renaming a function while ignoring occurrences in comments and strings.
A practical, generic `Print` function that can accept any number of arguments of any type and display them in a formatted string.
A practical, real-world example of integration: using the Transformer and Expression Parser together to create a simple template engine that replaces placeholders with evaluated data.
A practical, real-world example of using `SkipOver` to ignore HTML comments while transforming other parts of the document.
A practical, real-world parser that handles multiple key-value pairs and URL-encoded characters using a custom callback.
A real-world example contrasting the inefficient loop with the high-performance 'Parse-Once' pattern using a changing variable.
A real-world refactoring task to rename a function, showing how uCalc correctly ignores matches inside comments and strings by default.
A simple calculation to convert a temperature from Celsius to Fahrenheit, demonstrating basic arithmetic and order of operations.
A simple demonstration of safely renaming a variable without corrupting a string literal, a common pitfall for Regex.
A simple find-and-replace to convert inches to centimeters using a single ExpressionTransformer rule.