Small regexp tip
To find the shortest match in a using using regular expressions you can use a "Reluctant" qualifier like ".+?" instead of simply ".+" (greedy qualifier) which will find the longest match.
Wow - did that make my day!! :-)
This is the blog of Mikkel Heisterberg about all things Lotus though primarily Notes, Domino, Sametime and Connections. More detailed info about me, incl. bio, can be found on the about me page.
I'm available for consulting work. E-mail me (see the about me page) for address.
Please read the this page for disclaimer, copyright and license information.
|
2008 August (5) July (12) June (14) May (26) April (22) March (32) February (29) January (37) |
2007 December (17) November (24) October (20) September (23) August (20) July (9) June (17) May (24) April (12) March (8) February (18) January (33) |
|
2006 December (13) November (29) October (32) September (22) August (30) July (18) June (47) May (33) April (43) March (28) February (28) January (20) |
2005 December (14) November (19) October (11) September (13) August (24) July (22) June (0) May (0) April (9) March (14) February (10) January (3) |
|
2004 December (13) November (6) |
To find the shortest match in a using using regular expressions you can use a "Reluctant" qualifier like ".+?" instead of simply ".+" (greedy qualifier) which will find the longest match.
Wow - did that make my day!! :-)