I have this example:
ReplaceStrRegex(
Trim(
" qweqwe \n asdasdasd asdadsad \n\n\n\n asdasdasd"
),
"\\s{1,}",
" "
)
and when I run it, it returns:
qweqwe asdasdasd asdadsad asdasdasd
So for some reason, instead of just clearing out spaces, it also cleared out newlines.
However, if I do this:
ReplaceStrRegex(
Trim(
" qweqwe \n asdasdasd asdadsad \n\n\n\n asdasdasd"
),
"\\n{1,}",
" "
)
The returned output is:
qweqwe asdasdasd asdadsad asdasdasd
Which is correct because it only cleaned the newlines
And if I do this:
ReplaceStrRegex(
Trim(
" qweqwe \n asdasdasd asdadsad \n\n\n\n asdasdasd"
),
"\\n{2,}",
" \n"
)
The output is:
qweqwe
asdasdasd asdadsad asdasdasd
Which is also correct because it only cleared out the multiple new lines.
So I’m not sure what’s different with the \s{1,}
that it clears even the new lines.