From: "Jarle Leirpoll" Received: from nmsh6.e.nsc.no ([148.123.160.200] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTP id 6434542 for AE-List@media-motion.tv; Wed, 11 Apr 2018 13:28:05 +0200 X-Auth: leirpoll@online.no Received: from HPZBook17 (52.69.164.82.customer.cdi.no [82.164.69.52]) (authenticated bits=0) by nmsh6.nsc.no (8.15.2/8.15.2) with ESMTPSA id w3BBXQBX016553 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 Apr 2018 13:33:26 +0200 To: "'After Effects Mail List'" Subject: Re: [AE] Expression to break text after a certain number of characters Date: Wed, 11 Apr 2018 13:33:26 +0200 Message-ID: <001d01d3d188$e830b520$b8921f60$@online.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdPRhpkiFvT4sec9TpKFTXqg35kAtA== Content-Language: no X-Scanned-By: MIMEDefang 2.78 Thanks Mathias, I've used that method before, with * as the symbol for adding line = breaks. This is kind of the opposite problem. The user already have the line = breaks in the text they will be copy-pasting, I just want to preserve them. Seems like the best way is to have multiple text fields in the mogrt, = and let them paste each paragraph in its own field. That's not as = user-friendly as I'd hoped. :-( /jarle Mathias M=F6hl wrote: --------------------------------------- > Hmm, if MOGRTS are really limited that way, the only workaround that = comes to my mind is that you use another separator symbol for the linebreaks. > So the user, for example, enters=20 > =93This is line one and#this is line two and#a third one=94 > using the # symbol instead of a line break and then > in the expression you do > lines =3D txt.split(/#/); > instead of > lines =3D txt.split(/\r|\n|\x03/); > such that it splits the text at the # symbol instead of at actual line breaks.