new RegExp(
regexFromVerbose (?<!\\) \s // Ignore whitespace, but not // when escaped with backslash. | [/][/] .* // Single-line comment. | [/][*] [\s\S]* [*][/] // Multi-line comment. // Note: /[\s\S]/ is same as /./s // with dot-all flag (s).,
"g",
);
const regExp = regexFromVerbose (0 | [1-9] [0-9]*) // Integer part with no leading zeroes \. // Dot [0-9]* // Fractional part (optional) ([eE] [+-]? [0-9]+)? // Exponent part (optional);
Parameters
input: TemplateStringsArray
Returns RegExp
RegEx Is Functions
regexIsDateIso
regexIsDateIso(stringWithDate: string): boolean
name
regexIsDateIso
description
Checks if a string is an ISO-compliant date.
summary
import { regexIsDateIso } from '@corefunc/corefunc/regex/is/date-iso';
regexBasicStripSpaces
Replace multiple white-spaces in string.
import { regexBasicStripSpaces } from "@corefunc/corefunc/regex/basic/strip-spaces";
0.3.27
regexBasicStripSpaces(" too\n many \tspaces "); ā "too many spaces"