Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21862
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Sebastian <news@seyweiler.dyndns.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Regex: Any character in character class |
| Date | Wed, 30 Jan 2013 10:34:03 +0100 |
| Organization | albasani.net |
| Lines | 13 |
| Message-ID | <keapdj$aqh$1@news.albasani.net> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net 9ADdQbIhVjgEAzc/fPxSdHgm2sqEVN2WxnG7bDgvCRyLKJMOiRDz987BMhDfExKERxInuutKUtTmFlIYzPEKtA== |
| NNTP-Posting-Date | Wed, 30 Jan 2013 09:33:39 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="GRfQK2ZLNKOYVGQwgyZ9fIq83N1He61uf20ZkF65mPzVG2GDOwOcijAOzgRWxaNBxr96SOIQLAUPjnsuTXlC/h7hIWlDzwbe73FQl56gt2JDQK0SaDTQd6J348D8m+gF"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
| Cancel-Lock | sha1:BSsdc2cFlkgMG5zv+e0usHkNwfY= |
| Xref | csiph.com comp.lang.java.programmer:21862 |
Show key headers only | View raw
I want to match any sequence of characters, including line breaks, in a suffix of a multi-line string. I do not want to use Pattern.DOTALL, because line breaks are not permissible everywhere. I cannot write [.]* because dot loses its special meaning inside a character class. I have come up with [\S\s]* as meaning any sequence of non-whitespace or whitespace (incl. line-breaks). Is there a better way? -- Sebastian
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Regex: Any character in character class Sebastian <news@seyweiler.dyndns.org> - 2013-01-30 10:34 +0100
Re: Regex: Any character in character class Mikhail Vladimirov <vladimirow@mail.ru> - 2013-01-30 02:05 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:26 -0500
Re: Regex: Any character in character class Mikhail Vladimirov <vladimirow@mail.ru> - 2013-01-30 02:07 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:27 -0500
Re: Regex: Any character in character class Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-01 05:35 -0400
Re: Regex: Any character in character class Sebastian <news@seyweiler.dyndns.org> - 2013-02-01 21:14 +0100
Re: Regex: Any character in character class Lew <lewbloch@gmail.com> - 2013-02-01 12:54 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 16:47 -0500
Re: Regex: Any character in character class markspace <markspace@nospam.nospam> - 2013-02-01 14:06 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:13 -0500
Re: Regex: Any character in character class Sebastian <news@seyweiler.dyndns.org> - 2013-02-02 20:45 +0100
Re: Regex: Any character in character class markspace <markspace@nospam.nospam> - 2013-02-02 12:20 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-02-02 16:03 -0500
Re: Regex: Any character in character class Lew <lewbloch@gmail.com> - 2013-02-02 13:23 -0800
Re: Regex: Any character in character class Arne Vajhøj <arne@vajhoej.dk> - 2013-02-02 20:18 -0500
Re: Regex: Any character in character class Gene Wirchenko <genew@telus.net> - 2013-02-04 14:26 -0800
Re: Regex: Any character in character class Martin Gregorie <martin@address-in-sig.invalid> - 2013-02-05 00:03 +0000
Re: Regex: Any character in character class Robert Klemme <shortcutter@googlemail.com> - 2013-02-02 00:08 +0100
csiph-web