Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22020
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Sebastian <news@seyweiler.dyndns.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Regex: Any character in character class |
| Date | Sat, 02 Feb 2013 20:45:56 +0100 |
| Organization | albasani.net |
| Lines | 31 |
| Message-ID | <kejqcn$lnc$1@news.albasani.net> (permalink) |
| References | <keapdj$aqh$1@news.albasani.net> <5109e49b$0$295$14726298@news.sunsite.dk> <keh7mp$pjm$1@news.albasani.net> <510c380b$0$287$14726298@news.sunsite.dk> <kehe9j$otg$1@dont-email.me> <510c3e29$0$287$14726298@news.sunsite.dk> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net GwgOdg6q7Vix95eTaOzEwLorRy907vPxLi+Fp7NRNXDFerfb6H3tnkmUo9lhVa8GuljcgJmH+NB74ApnZsLDXQ== |
| NNTP-Posting-Date | Sat, 2 Feb 2013 19:45:27 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="8WscNyw7OI6YG5bGxs4AC+ok1HDZcgBKo4GG4Jig3R8wnBLxfXrKMCL8fX22tpoo4/QQT4jarNnQa2hQKLbFGEaL0K5twt5ju8g0Uaq5Hw0CJ014sckWgEWu+6jfBIDd"; 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 |
| In-Reply-To | <510c3e29$0$287$14726298@news.sunsite.dk> |
| Cancel-Lock | sha1:LbeAqahE5DfOPw4hsmaLbc6MC2E= |
| Xref | csiph.com comp.lang.java.programmer:22020 |
Show key headers only | View raw
Am 01.02.2013 23:13, schrieb Arne Vajhøj: [snip] > And also round brackets for the last part. > > .+?:(.|\n)+ > > I think I must have set a new world record. 3 bugs in 12 characters. > > :-( > > Arne > Here's a concrete example: SCA:LIST, select[werks_s:default_plant],values[bukrs:bukrs, company:company] The second part is everything after the first comma. I was using (.+?),[\s\S]+ Arne's suggestion modified for my needs (comma as separator, and I only want to capture the first part as a group) will work fine as well: (.+?),(?:.|\n)+ Can't say though that I find anything to prefer the one to the other. Perhaps the second looks even more like the result of a cat walk... -- Sebastian
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | 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