NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
function escapeRegexSymbols(source: string): string;

Defined in: utils/index.d.ts:126

Escapes special regex symbols (., *, ^, $ and so on) in string in order to create a valid regex from it.

Parameters

ParameterTypeDescription
sourcestringThe original value.

Returns

string