Splitting a string with Regex and keep the separator



I need to split a string whenever a separator string is present (lets
sey #Key(val) where val is a variable) and rejoin it in the proper
order after doing some processing.

Is there a way to use the Regex.Split function to split the string
whenever the #Key(val) occurrs but that keeps the #Key(val)
occurrences to that I can reconstruct the final string after doing
certain operations on each token (I need to basically convert each
string into an array of characters but I need to do this differently
is the string is a #Key(val)

Thanks.
Andrea
.



Relevant Pages

  • Re: Splitting a string with Regex and keep the separator
    ... sey #Keywhere val is a variable) and rejoin it in the proper ... Is there a way to use the Regex.Split function to split the string ... whenever the #Keyoccurrs but that keeps the #Key ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Splitting a string with Regex and keep the separator
    ... sey #Keywhere val is a variable) and rejoin it in the proper ... Is there a way to use the Regex.Split function to split the string ... whenever the #Keyoccurrs but that keeps the #Key ... This will pass the found pieces in order to the manipulate function and pass the result into a new string when done. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is it really true that native English speakers cannot tell skill and sgill apart?
    ... nonsensical proper name. ... the hearer wouldn't come up with a string that didn't conform). ... It isn't that I'm hearing a string of syllables that I'm perceiving to be meaningless, and then, for the sake of being able to call the thing a mondegreen, claiming it to be a proper name. ... language, and a passage is a bit difficult, I notice how something is ...
    (sci.lang)
  • RE: Outlook 2007 does not display ACCEPT|DECLINE buttons with an ICAL
    ... The code is sent both in a proper body-section with ... Gmail, Thunderbird and Outlook 2003. ... string Subject = this.CreateSubject; ... AlternateView calendarView = ...
    (microsoft.public.outlook.calendaring)
  • Re: Proper way of dimensioning variable
    ... What is a good programming practice? ... >I would suggest the proper way would be to use the Byte type, ... >conserve memory, but for individual variables, Long and String ... Most of my apps database apps, guess this is why I prefer to use the ...
    (microsoft.public.vb.general.discussion)

Loading