Hello Denis

thank you for testing. Please correct it, then.


Best regards from Hamburg/Germany

Carsten Schmitz

LimeSurvey Project Leader
carsten.schmitz@limesurvey.org

http://www.limesurvey.org

Am 22.12.2012 12:32, schrieb Denis Chenu:
Hello,

Sorry again, but i confirm:
~\R~u : replace line feed
~\Ru~ : don't replace line feed.

Denis

Le 22/12/2012 12:11, Denis Chenu a écrit :
No,

The regexp don't catch line feed. I test it again in export responses.

Maybe it's because a error in regexp : i see ~\R~u and ~\Ru~ in LS php
code.

Denis

Le 22/12/2012 09:00, Carsten Schmitz a écrit :
Hello

The regular expression catches not only standard linefeeds but also
UTF-8 linebreaks etc.

See
http://stackoverflow.com/questions/7836632/how-to-replace-different-newline-styles-in-php-the-smartest-way
for explanation


Best regards from Hamburg/Germany

Carsten Schmitz

LimeSurvey Project Leader
carsten.schmitz@limesurvey.org

http://www.limesurvey.org



Am 22.12.2012 00:40, schrieb Denis Chenu:
Hello,

I use Flatten text for title, think flatten text don't remove Line Feed,
but not.

Function used is:
$sNicetext = preg_replace(array('~\Ru~'),array(' '), $sNicetext);
I don't understand the regexp here, it's an old regexp (in 1.92 same regexp)

To replace line feed just do:
$sNicetext = str_replace(array("\r\n", "\n", "\r"), "", $sNicetext);
are OK.

What is the reason of this regexp ? Did someone have an idea ? An old
"non utf-8" encoding saved in utf8 ?

Denis



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers