>
<
>
<
>
<
>Suessgraeser<
>
<
>
<
>
<
>
<
>
<
>
<
>
<
>
<
><
...
>.*?<https://regex101.com/r/nBy7uK/1
>[^<>]+<https://regex101.com/r/XH54hH/1
<looks like twice written, in fact that is once written: < + linefeed + >
>
>= 3 )) ||
((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4 )));
function MSFPpreload(img)
{
var a=new Image(); a.src=img; return a;
}
// --><
I guess there is a bug in tregexpAre you sure. Not for me with that regex.
https://regex101.com/r/XH54hH/1
it finds
<snip>
as a match.
uregexpr.pp is added ten months ago. So needs 3.2.0 or trunk. ...
I have a text that I got by using a regular expression. This text contains some new-line (\n) tokens.Presuming that the text you got from the regular expression is (or was at one time) in a string, you could simply use StringReplace https://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html (https://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html) to replace the occurrences of \n with an empty string.
How can I remove these new-lines within the text (ie. I need the text in 1 line)?
Please note: I don't want to remove all new-lines from my whole text, only within the text-part that I got by the regex.
Thank you, but I need to use the ReplaceRegExpr.I have a text that I got by using a regular expression. This text contains some new-line (\n) tokens.Presuming that the text you got from the regular expression is (or was at one time) in a string, you could simply use StringReplace https://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html (https://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html) to replace the occurrences of \n with an empty string.
How can I remove these new-lines within the text (ie. I need the text in 1 line)?
Please note: I don't want to remove all new-lines from my whole text, only within the text-part that I got by the regex.