Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS2010 Chart Control Pin
DaveyM692-Jul-10 1:35
professionalDaveyM692-Jul-10 1:35 
GeneralRe: VS2010 Chart Control Pin
Pete O'Hanlon2-Jul-10 2:23
mvePete O'Hanlon2-Jul-10 2:23 
Questionto handle Multiple clients.... Pin
yum 20101-Jul-10 8:08
yum 20101-Jul-10 8:08 
AnswerThe hardest part of dealing with mulitple clients Pin
Ennis Ray Lynch, Jr.1-Jul-10 8:27
Ennis Ray Lynch, Jr.1-Jul-10 8:27 
Questionsending serialized listview over tcp Pin
teknolog1231-Jul-10 7:31
teknolog1231-Jul-10 7:31 
AnswerRe: sending serialized listview over tcp Pin
Not Active1-Jul-10 7:50
mentorNot Active1-Jul-10 7:50 
GeneralRe: sending serialized listview over tcp [modified] Pin
teknolog1231-Jul-10 8:10
teknolog1231-Jul-10 8:10 
QuestionHelp in Regular expressions Pin
shankbond1-Jul-10 6:53
shankbond1-Jul-10 6:53 
Hi,
I am new to regular expressions, I am having a problem regarding matching a specific keyword in certain condition.

string regexstring="\\bhtml\\b|[.]net\\b";
Regex rgx = new Regex(regexstring, RegexOptions.IgnoreCase);
MatchCollection matcol = null;
            string st_data = "I am a .net developer, but also know about asp.net, vb.net ; I work on c#/asp.net platform. I also know dhtml, html4.0, html/xml etc etc.";
//I want the regex to capture all occureneces for html where html is a word seperated \b-->word boundary or is surrounded by decimals like html4.0 above.
            st_data = System.Web.HttpUtility.HtmlDecode(Regex.Replace(st_data, @"<(.|\n)*?>", string.Empty));
            matcol = rgx.Matches(st_data);

            foreach (Match mat in matcol)
            {
                //I WILL GET the mat.value here.
            }

I tried various variations but of no use.

I want to match html4.0 but some how I need only html out of it.kind of substringed match.

I hope You understand my point.

Please help

any help shall be appreciated.
Thanks
Shankbond

AnswerRe: Help in Regular expressions Pin
OriginalGriff1-Jul-10 8:46
mveOriginalGriff1-Jul-10 8:46 
GeneralRe: Help in Regular expressions Pin
shankbond1-Jul-10 18:24
shankbond1-Jul-10 18:24 
GeneralRe: Help in Regular expressions Pin
OriginalGriff1-Jul-10 21:49
mveOriginalGriff1-Jul-10 21:49 
GeneralRe: Help in Regular expressions Pin
shankbond4-Jul-10 1:10
shankbond4-Jul-10 1:10 
GeneralRe: Help in Regular expressions Pin
OriginalGriff1-Jul-10 22:04
mveOriginalGriff1-Jul-10 22:04 
GeneralRe: Help in Regular expressions Pin
shankbond4-Jul-10 1:08
shankbond4-Jul-10 1:08 
GeneralRe: Help in Regular expressions Pin
shankbond5-Jul-10 21:31
shankbond5-Jul-10 21:31 
QuestionLogin with access token in C# Pin
Etienne_1231-Jul-10 6:29
Etienne_1231-Jul-10 6:29 
QuestionTrying to Shut Down application Pin
PDTUM1-Jul-10 5:19
PDTUM1-Jul-10 5:19 
AnswerRe: Trying to Shut Down application Pin
I Believe In GOD1-Jul-10 5:37
I Believe In GOD1-Jul-10 5:37 
AnswerRe: Trying to Shut Down application Pin
PDTUM1-Jul-10 6:06
PDTUM1-Jul-10 6:06 
QuestionCant use System.Windows Pin
ayandelhi1-Jul-10 4:46
ayandelhi1-Jul-10 4:46 
AnswerRe: Cant use System.Windows Pin
Pete O'Hanlon1-Jul-10 4:50
mvePete O'Hanlon1-Jul-10 4:50 
GeneralRe: Cant use System.Windows Pin
ayandelhi1-Jul-10 4:53
ayandelhi1-Jul-10 4:53 
GeneralRe: Cant use System.Windows Pin
Paladin20001-Jul-10 5:30
Paladin20001-Jul-10 5:30 
AnswerRe: Cant use System.Windows Pin
Richard MacCutchan1-Jul-10 4:55
mveRichard MacCutchan1-Jul-10 4:55 
GeneralRe: Cant use System.Windows Pin
ayandelhi1-Jul-10 4:58
ayandelhi1-Jul-10 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.