Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting the .exe location Pin
Mike Osbahr12-Jun-03 11:17
Mike Osbahr12-Jun-03 11:17 
GeneralRe: Getting the .exe location Pin
dynamic12-Jun-03 12:42
dynamic12-Jun-03 12:42 
Generalgui event handling Pin
zuhx12-Jun-03 10:38
zuhx12-Jun-03 10:38 
GeneralConvert data type Pin
Hoang Dung12-Jun-03 9:29
Hoang Dung12-Jun-03 9:29 
GeneralRe: Convert data type Pin
zuhx12-Jun-03 10:46
zuhx12-Jun-03 10:46 
GeneralRe: Convert data type Pin
Hoang Dung13-Jun-03 2:48
Hoang Dung13-Jun-03 2:48 
GeneralSub matches in RegEx Pin
leppie12-Jun-03 9:21
leppie12-Jun-03 9:21 
GeneralRe: Sub matches in RegEx Pin
Anonymous12-Jun-03 9:28
Anonymous12-Jun-03 9:28 
try the regularexpression clas

using System.Text.RegularExpressions;

and then you can match with

Match m = Regex.Match(strText, @"(?\w?(pat2)\d?)", RegexOptions.IgnoreCase);

if (m.Succes)
{
string value = m.Groups[1].Value.ToString(); // like $1 in Perl
...
}

or

Regex.Replace(strTex, @"(?\w?(pat2)\d?)", @"<replacewith>", <regexoptions>)

If you come from Perl you don't need to break the / or \ (=~ /\// | =~ /\\/) but you need to "break" the " with double them

Regex.Match(strText, @"value=""(.*?)""\s*>", RegexOptions)

Hope this will help!
GeneralRe: Sub matches in RegEx Pin
leppie12-Jun-03 10:16
leppie12-Jun-03 10:16 
GeneralInternet hosted EXE doesn't like app config file Pin
Ryan Cromwell12-Jun-03 8:29
Ryan Cromwell12-Jun-03 8:29 
GeneralRe: Internet hosted EXE doesn't like app config file Pin
James T. Johnson14-Jun-03 4:06
James T. Johnson14-Jun-03 4:06 
GeneralDataGrid Control Pin
Gareth L12-Jun-03 5:26
Gareth L12-Jun-03 5:26 
GeneralRe: DataGrid Control Pin
Rocky Moore12-Jun-03 21:29
Rocky Moore12-Jun-03 21:29 
GeneralCreating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:11
kevinrc12-Jun-03 5:11 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:16
kevinrc12-Jun-03 5:16 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
shaunAustin12-Jun-03 5:21
shaunAustin12-Jun-03 5:21 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:24
kevinrc12-Jun-03 5:24 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
Anonymous13-Jun-03 1:54
Anonymous13-Jun-03 1:54 
GeneralLinking combo box to list box Pin
totig12-Jun-03 3:31
totig12-Jun-03 3:31 
GeneralRe: Linking combo box to list box Pin
kevinrc12-Jun-03 5:07
kevinrc12-Jun-03 5:07 
GeneralRe: Linking combo box to list box Pin
totig12-Jun-03 5:49
totig12-Jun-03 5:49 
GeneralRe: Linking combo box to list box Pin
kevinrc12-Jun-03 6:40
kevinrc12-Jun-03 6:40 
GeneralDatagrid data entry problem in WinForm Pin
Chris#12-Jun-03 3:31
Chris#12-Jun-03 3:31 
GeneralRe: Yes, the NumLock light is on Pin
Chris#12-Jun-03 5:25
Chris#12-Jun-03 5:25 
GeneralRe: Datagrid data entry problem in WinForm Pin
A.Wegierski12-Jun-03 19:50
A.Wegierski12-Jun-03 19: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.