|
-
Oct 19th, 2006, 08:28 AM
#1
Thread Starter
Hyperactive Member
Parse(String.Format)
Hi
as most of you know, you can use formats when building strings
example:
strResult = String.Format("blablabla {0} blablabla {1} blablabla", input0, input1);
I was wondering if there is a default function to parse it back the other way round:
string[] inputs = ReParse(strResult, "blablabla {0} blablabla {1} blablabla");
(If not, then I guess the cleanest way is a regular expression )
Thank you in advance.
____________________________________________
Please rate my messages. Thank you!
____________________________________________
Bram Vandenbon
http://www.bramvandenbon.com
-
Oct 23rd, 2006, 12:20 AM
#2
Sleep mode
Re: Parse(String.Format)
I think it's only one way function ....nice blog there btw
-
Oct 23rd, 2006, 12:28 AM
#3
Re: Parse(String.Format)
You may be able to come up with something that did that using regular expressions but it would require more than one line of code on your part to accomplish it.
-
Oct 23rd, 2006, 12:41 PM
#4
Thread Starter
Hyperactive Member
____________________________________________
Please rate my messages. Thank you!
____________________________________________
Bram Vandenbon
http://www.bramvandenbon.com
-
Oct 23rd, 2006, 11:23 PM
#5
Sleep mode
Nice dude...Good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|