FIND YOUR NEXT FEW LINES

Results for “MATCH”

Small, practical examples. Search by task or narrow things down below.

194 snippets foundClear filters
Bash ScriptsFiles & reliability

Handle a filename pattern with no matches

Use nullglob so an unmatched pattern produces an empty array.

nullglob✓ Tested
C++Text validation & parsing

Iterate over all regular-expression matches

C++: A regex iterator yields successive matches without manually updating an offset.

C++✓ Tested
JavaScriptArray restructuring

Keep both matching and rejected values

JavaScript: Use two explicit outputs when a caller needs both sides of a classification.

JavaScript✓ Tested
TypeScriptArray restructuring

Keep both matching and rejected values

TypeScript: Use two explicit outputs when a caller needs both sides of a classification.

TypeScript✓ Tested
SQLGetting Started

Keep rows matching a condition

SQL: Use WHERE to select rows with a particular category.

SQL✓ Tested
SQL ServerGetting Started

Keep rows matching a condition

SQL Server: Use WHERE to select rows with a particular category.

SQL Server✓ Tested
PostgresGetting Started

Keep rows matching a condition

Postgres: Use WHERE to select rows with a particular category.

Postgres✓ Tested
SQLiteGetting Started

Keep rows matching a condition

SQLite: Use WHERE to select rows with a particular category.

SQLite✓ Tested
SQLJoins & subqueries

Keep unmatched rows with LEFT JOIN

Show every product even when stock is missing.

LEFT JOIN✓ Tested
Linux CommandsSearching text

List files containing a match

Linux Commands: Use grep -l when only the matching filenames are needed.

Linux Commands✓ Tested
C#Files & paths

List matching files

Enumerate immediate text files and sort their names in C#.

C#✓ Tested
Docker / ComposeNetworks & volume metadata

List only volumes matching a label

Docker / Compose: A label filter avoids relying on broad name patterns.

Docker / Compose✓ Tested