Search found 3 matches: backslash

Searched query: backslash

by Antonio Linares
Thu Sep 05, 2024 9:20 am
Forum: FiveWin for Harbour/xHarbour
Topic: Searching for a string in the text
Replies: 6
Views: 967

Re: Searching for a string in the text

... s+`: This matches one or more whitespace characters (including spaces, tabs, and newlines).
2. `\.`: This matches a literal dot (period). The backslash is used to escape the dot, as a dot normally has a special meaning in regex.
3. `\w`: This matches any word character (letters, digits, or ...
by Ruth
Wed Jan 31, 2024 1:38 pm
Forum: mod_harbour
Topic: Different Processing of Escape Characters in Mod Harbour
Replies: 5
Views: 1865

Re: Different Processing of Escape Characters in Mod Harbour

Dear Otto,
I think \n leads to an error because the backslash is an escape character in javascript.
according to chatgpt :-) ... when used in a string, the \ expects to be followed by another character to form the escape sequence.
So \\n is needed in this case I suppose.
kind regards
ruth