Splitting a string with Regex and keep the separator
- From: "nagar@xxxxxxxxxxxxxxxx" <nagar@xxxxxxxxxxxxxxxx>
- Date: Mon, 04 Jun 2007 23:16:37 +0200
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
.
- Follow-Ups:
- RE: Splitting a string with Regex and keep the separator
- From: Walter Wang [MSFT]
- Re: Splitting a string with Regex and keep the separator
- From: Jesse Houwing
- Re: Splitting a string with Regex and keep the separator
- From: Jesse Houwing
- RE: Splitting a string with Regex and keep the separator
- Prev by Date: Re: I need an html parser
- Next by Date: Re: Text to Speech in c#
- Previous by thread: About windows apps in .net
- Next by thread: Re: Splitting a string with Regex and keep the separator
- Index(es):
Relevant Pages
|
Loading