Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: multi-line Strings Date: Sun, 16 Dec 2012 00:34:05 +0100 Lines: 50 Message-ID: References: <7f36342c-2331-4484-874b-4a0f8953f160@googlegroups.com> <50c61150$0$293$14726298@news.sunsite.dk> <50c6413a$0$293$14726298@news.sunsite.dk> <50c6598d$0$290$14726298@news.sunsite.dk> <50c69625$0$293$14726298@news.sunsite.dk> <50cbeec3$0$291$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: individual.net 5bjMVmJx4TgkhZYxRuRWMg8MUljtSJeVxe3yx4kPfsziNGN1y2M5reoxMk/XoZUWY= Cancel-Lock: sha1:72KUIeAGvvaKUec0XwDS5YD9fMM= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:20368 On 15.12.2012 18:22, Peter J. Holzer wrote: > On 2012-12-15 03:30, Arne Vajh=F8j wrote: >> On 12/11/2012 5:31 PM, Martin Gregorie wrote: >>> Its just a bit frustrating that there are languages around that can d= eal >>> with regexes without turning them into an unreadable mess and that Ja= va >>> isn't one of them. >> >> The regex syntax itself is not exactly a good example of readability. > > True, but there are ways to improve it. For example, Perl has a variant= > Regexp syntax (indicated with the /x flag) where whitespace (including > newlines) is ignored and comments are allowed. http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#COM= MENTS > But for all various string syntaxes that Perl supports, it's still > missing a sane multiline string syntax. Does it? $ perl x.pl a line another line yet another line one more line $ cat x.pl $str=3D<