Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1469555.Cl2dHhCXWe@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 03 Nov 2012 21:39:43 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <1805042.BzeuYpbCYS@PointedEars.de> <7MidnYXvqeq8ggnNnZ2dnUVZ_uGdnZ2d@earthlink.com> <1466051.Cd1scNln3u@PointedEars.de> <6563475.n3XdYolgyi@PointedEars.de> <0aWdnSkO4e2z5AjNnZ2dnUVZ_oidnZ2d@earthlink.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 32 NNTP-Posting-Date: 03 Nov 2012 21:39:43 CET NNTP-Posting-Host: f412aab0.newsspool2.arcor-online.net X-Trace: DXC==eNEXJ\DjnDZm8W4\YJNlJ`:FmdeL>K`ehLF0A91V>hJEDNUOD_`ln X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17031 Patricia Shanahan wrote: > On 11/3/2012 2:19 AM, Thomas 'PointedEars' Lahn wrote: >> Insufficient expressiveness or excessive verbosity means you have to >> write longer expressions for rather simply concepts. Consider, for ^e >> example, POSIX `[[:space:]]' vs. Perl/PCRE `\s'. Consider POSIX Basic >> Regular Expressions (BRE) `\{0,1\}' vs. POSIX Extended Regular >> Expressions (ERE)'s and Perl's/Perl-Compatible Regular Expressions >> (PCRE)'s `?'. Consider POSIX BRE `\{1,\}' vs. ERE's/Perl's/PCRE's `+'. >> [...] > > Why do you prefer terse expressions? To me, `[[:space:]]' says what it > means far more clearly than `\s'. I do prefer m{\s?(Captain's\s+Log)\s?} over '[[:space:]]\{0,1\}\(Captain'\''s[[:space:]]\{1,\}Log\)[[:space:]]\{0,1\}' YMMV. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from (404-comp.)