Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 16, 2012 03:33 AM by Angie xu - MSFT
Dec 09, 2012 04:39 PM|LINK
i need to extract some data from a string using regular expression..
pattern is like this..
here is the string..
"weakened, 3rd of 7, 41l behind Steady Ed (11-12) at Limerick 2m 5f mdn hdl hvy in Nov."
i will have this kinda string and i want to extract the value which is with l , that is with the 41.. so i need to make some sort of Regular Expression which can extract the text with the l..
so can somebody help to make the regular expression..
Thanks for reading the message.
Dec 09, 2012 05:07 PM|LINK
Is the "|" always going to be in the string, as a delimiter? If so, use the split method on the "|"
var x = yourstring.split("|");
This will give you an array of strings.. then you can take the first string
var TheValueYouWant = x;
Dec 16, 2012 03:33 AM|LINK
You could use split like this, string  split = words.Split("|");
and I think substring is also available for you.