Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18891
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: RegExp problem |
| Date | 2013-03-14 15:25 +0100 |
| Organization | albasani.net |
| Message-ID | <khsmkn$m11$1@news.albasani.net> (permalink) |
| References | <9608f578-525d-4670-9792-0700df15eb41@googlegroups.com> <khsfbf$udt$1@dont-email.me> <XnsA183976552747eejj99@194.109.133.133> |
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]* 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
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