Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18894
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: RegExp problem |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <9608f578-525d-4670-9792-0700df15eb41@googlegroups.com> <khsfbf$udt$1@dont-email.me> <XnsA183976552747eejj99@194.109.133.133> <khsmkn$m11$1@news.albasani.net> |
| Date | 2013-03-14 19:54 +0100 |
| Message-ID | <XnsA183CA95CBECEeejj99@194.109.133.133> (permalink) |
Stefan Weiss wrote on 14 mrt 2013 in comp.lang.javascript: > On 2013-03-14 14:52, Evertjan. wrote: >> Jukka K. Korpela wrote on 14 mrt 2013 in comp.lang.javascript: >> >>> The period "." does not match newline characters, and the data string >>> contains two newlines (\n). To work around this, replace (.*) by >>> ((.|\n)*) >> >> or: >> >> [.\n]* right, sorry. > That's a literal dot character. > It does nothing special inside a character class. > >> or my personal favorite for "any character": >> >> [\s\S]* > > Shortest way to match "any character including \n": > [^] > > > - stefan > -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
RegExp problem John English <john.foreign@gmail.com> - 2013-03-14 04:56 -0700
Re: RegExp problem "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-03-14 14:22 +0200
Re: RegExp problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-14 14:52 +0100
Re: RegExp problem "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-03-14 16:08 +0200
Re: RegExp problem Stefan Weiss <krewecherl@gmail.com> - 2013-03-14 15:25 +0100
Re: RegExp problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-14 16:47 +0100
Re: RegExp problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-14 21:11 +0100
Re: RegExp problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-14 19:54 +0100
Re: RegExp problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-14 13:26 +0100
Re: RegExp problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-14 17:31 +0100
csiph-web