Click here to Skip to main content
15,879,613 members
Home / Discussions / C#
   

C#

 
GeneralRe: My Own Database File Pin
Vasudevan Deepak Kumar17-Nov-02 23:21
Vasudevan Deepak Kumar17-Nov-02 23:21 
GeneralAudio Files in DLL Pin
Jassim Rahma17-Nov-02 9:24
Jassim Rahma17-Nov-02 9:24 
GeneralRe: Audio Files in DLL Pin
Jassim Rahma21-Nov-02 14:27
Jassim Rahma21-Nov-02 14:27 
GeneralKeyboard Language Pin
Jassim Rahma17-Nov-02 9:09
Jassim Rahma17-Nov-02 9:09 
GeneralRe: Keyboard Language Pin
Mazdak17-Nov-02 18:44
Mazdak17-Nov-02 18:44 
GeneralInvoice Printing Pin
Jassim Rahma17-Nov-02 9:06
Jassim Rahma17-Nov-02 9:06 
GeneralRegex question Pin
leppie17-Nov-02 8:05
leppie17-Nov-02 8:05 
GeneralRe: Regex question Pin
Bog18-Nov-02 14:52
Bog18-Nov-02 14:52 
Well you scratched my back before leppie, so....

<br />
<br />
<br />
string s= @"<here is='a little' bit='of'>xml</here>";<br />
Regex rx=new Regex(<br />
	@"(?<tag><)((?<prequote>.*?)')+(?<tag>[^']*?>)",<br />
	RegexOptions.Compiled|RegexOptions.ExplicitCapture|RegexOptions.Singleline);<br />
string results=rx.Replace(s,new MatchEvaluator(this.tagEvaluator));<br />
Console.WriteLine(results);<br />
<br />
<br />
	string tagEvaluator(Match m) {<br />
		string r=m.Groups["tag"].Captures[0].Value;<br />
		for (int i=0; i< m.Groups["prequote"].Captures.Count;i++) {<br />
			r+= m.Groups["prequote"].Captures[i].Value + "\"";<br />
		}<br />
		return r + m.Groups["tag"].Captures[1].Value;<br />
	}<br />
<br />





"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx

GeneralCodeProject reformatted me Pin
Bog18-Nov-02 14:53
Bog18-Nov-02 14:53 
GeneralAAAAARRGH Pin
Bog18-Nov-02 14:55
Bog18-Nov-02 14:55 
GeneralRe: AAAAARRGH Pin
leppie19-Nov-02 11:19
leppie19-Nov-02 11:19 
GeneralAccessing menu items from UserControl Pin
Paul Silvernail17-Nov-02 4:46
Paul Silvernail17-Nov-02 4:46 
GeneralRe: Accessing menu items from UserControl Pin
djkno317-Nov-02 5:14
djkno317-Nov-02 5:14 
GeneralDirectoryEntry Pin
Mazdak17-Nov-02 3:15
Mazdak17-Nov-02 3:15 
GeneralRe: DirectoryEntry Pin
leppie17-Nov-02 7:11
leppie17-Nov-02 7:11 
GeneralRe: DirectoryEntry Pin
Mazdak17-Nov-02 8:05
Mazdak17-Nov-02 8:05 
GeneralSystem.Messaging missing ??!!! Pin
Pilgrim16-Nov-02 20:33
Pilgrim16-Nov-02 20:33 
GeneralRe: System.Messaging missing ??!!! Pin
James T. Johnson16-Nov-02 20:49
James T. Johnson16-Nov-02 20:49 
GeneralRe: System.Messaging missing ??!!! Pin
Vasudevan Deepak Kumar17-Nov-02 23:28
Vasudevan Deepak Kumar17-Nov-02 23:28 
GeneralViews in C# Pin
Paul Silvernail16-Nov-02 17:25
Paul Silvernail16-Nov-02 17:25 
GeneralRe: Views in C# Pin
SimonS16-Nov-02 19:32
SimonS16-Nov-02 19:32 
GeneralRe: Views in C# Pin
Paul Silvernail17-Nov-02 2:45
Paul Silvernail17-Nov-02 2:45 
GeneralRe: Views in C# Pin
James T. Johnson16-Nov-02 20:56
James T. Johnson16-Nov-02 20:56 
GeneralRe: Views in C# Pin
Paul Silvernail17-Nov-02 2:50
Paul Silvernail17-Nov-02 2:50 
GeneralTwo Thread Accessing Same File At The Same Time Pin
yccheok16-Nov-02 16:50
yccheok16-Nov-02 16:50 

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.