Path: csiph.com!usenet.pasdenom.info!news.albasani.net!nuzba.szn.dk!pnx.dk!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!193.141.40.65.MISMATCH!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="UTF-8" Message-ID: <1570927.2IDeUa4rlp@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 11 Apr 2013 21:35:17 +0200 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <7867864.kBbL0iy7tU@PointedEars.de> <2615387.eNcf81pqbo@PointedEars.de> MIME-Version: 1.0 Lines: 28 NNTP-Posting-Date: 11 Apr 2013 21:35:17 CEST NNTP-Posting-Host: df745cb4.newsspool3.arcor-online.net X-Trace: DXC=J_IGgAQVLKDI7\_^6>c20JMcF=Q^Z^V3H4Fo<]lROoRA8kF … > && !/@forbidden(\..+?)+$/.test(…) > > […] The RegExp constructor comes in handy here with regard to an easily > maintained list of allowed characters (which reminds me to look into > pattern interpolation for jsx.regexp.RegExp). I almost forgot: jsx.regexp.RegExp.definePropertyClasses({ atext: "\\w!#$%&'*+/=?^`{|}~-" }); if (… && !(new jsx.regexp.RegExp("@forbidden(\\.\\p{atext}+?)+$")).test(…)) { … } (In V8 also with a RegExp literal as argument and no double escaping :)) -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.