quick regexp/perl question

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
Motivus
Developers
Developers
Posts: 157
Joined: 04 Apr 2008, 13:33
Noob?: Yes

quick regexp/perl question

#1 Post by Motivus »

How do you remove line breaks / carriage returns from a string?
Oh no.

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: quick regexp/perl question

#2 Post by sli »

I use chomp. It's much faster than than regex.
cs : ee : realist

Motivus
Developers
Developers
Posts: 157
Joined: 04 Apr 2008, 13:33
Noob?: Yes

Re: quick regexp/perl question

#3 Post by Motivus »

sli wrote:I use chomp. It's much faster than than regex.
thanks

I am still really bad at perl and finding perl functions/documentation.
Oh no.

Locked