FIND YOUR NEXT FEW LINES

Results for “Strings & text”

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

474 snippets foundClear filters
ReactForms & validation

Keep numeric input text until conversion

Keep numeric input text until conversion with a small React component and explicit browser behavior.

React✓ Tested
HTMLInput constraints

Limit typed text to a maximum length

HTML: Maxlength limits ordinary user editing without replacing server-side validation.

HTML✓ Tested
SQLText cleanup & matching

Match a known text prefix

SQL: A percent wildcard matches zero or more characters following the prefix.

SQL✓ Tested
SQL ServerText cleanup & matching

Match a known text prefix

SQL Server: A percent wildcard matches zero or more characters following the prefix.

SQL Server✓ Tested
PostgresText cleanup & matching

Match a known text prefix

Postgres: A percent wildcard matches zero or more characters following the prefix.

Postgres✓ Tested
SQLiteText cleanup & matching

Match a known text prefix

SQLite: A percent wildcard matches zero or more characters following the prefix.

SQLite✓ Tested
SQLGetting Started

Match a text prefix

SQL: Use a percent wildcard after a known prefix.

SQL✓ Tested
SQL ServerGetting Started

Match a text prefix

SQL Server: Use a percent wildcard after a known prefix.

SQL Server✓ Tested
PostgresGetting Started

Match a text prefix

Postgres: Use a percent wildcard after a known prefix.

Postgres✓ Tested
SQLiteGetting Started

Match a text prefix

SQLite: Use a percent wildcard after a known prefix.

SQLite✓ Tested
PythonGetting Started

Measure a short text value

Python: Read the length of an ASCII string. Non-ASCII text may use multiple code units or bytes depending on the language.

Python✓ Tested
C#Getting Started

Measure a short text value

C#: Read the length of an ASCII string. Non-ASCII text may use multiple code units or bytes depending on the language.

C#✓ Tested