|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Regex questionI have a fairly simple pattern but am stuck on the very end. Simply, it
needs to match any character grouping that is separated by more than a single space: This is one group and this is another group and this is a third group My regex is: ..+?(?:\s{2,}) The only problem is that the last group isn't captured since it ends with a line terminator and not 2 or more spaces. So the question is how do I account for this as well? Thanks. Marianne You might try to end with (\s{2,}|$)
/LM Show quoteHide quote "Marianne" <Marianne@nospam.nospam> wrote in message news:u%236QGfRbFHA.3120@TK2MSFTNGP12.phx.gbl... >I have a fairly simple pattern but am stuck on the very end. Simply, it >needs to match any character grouping that is separated by more than a >single space: > > This is one group and this is another group and this is a third > group > > My regex is: > .+?(?:\s{2,}) > > The only problem is that the last group isn't captured since it ends with > a line terminator and not 2 or more spaces. So the question is how do I > account for this as well? Thanks. > > Marianne >
Calling "computed" click events programmatically
Ideal method.... How do I return a tick character Storing setting Getting list of Properties using Reflection VB.NET: Two dimensional sort Double post back problem with two clicks on a control Errors in .NET Application on Windows XP SP2 Getting formated SQL Enterprise Library - Getting Started in VB? |
|||||||||||||||||||||||