Message291140
A slightly shorter form:
/\*(?:(?!\*/).)*\*/
Basically it's:
match start
while not match end:
consume character
match end
If the "match end" is a single character, you can use a negated character set, for example:
[^\n]*
otherwise you need a negative lookahead, for example:
(?:(?!\r\n).)* |
|
Date |
User |
Action |
Args |
2017-04-04 20:49:12 | mrabarnett | set | recipients:
+ mrabarnett, ezio.melotti, gdr@garethrees.org, serhiy.storchaka, Robert Lujo |
2017-04-04 20:49:12 | mrabarnett | set | messageid: <1491338952.7.0.859538294654.issue29977@psf.upfronthosting.co.za> |
2017-04-04 20:49:12 | mrabarnett | link | issue29977 messages |
2017-04-04 20:49:12 | mrabarnett | create | |
|