Click here to Skip to main content
15,908,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: History List in TextBox Pin
ravalosv25-May-05 12:21
ravalosv25-May-05 12:21 
GeneralRegex Help please Pin
J4amieC25-May-05 5:39
J4amieC25-May-05 5:39 
Hi, I have the following regex pattern declared:

private const string ParamPattern = @"(?<name>@\w+)='(?<value>.*?)'";

this is used to match all occurences of eg/ @myVar='myVal' in a string which may have multiple "params". The whole string often looks like:

somthing[@myVar1='myVal1'][@myVar2='myVal2']

so the above would find 2 matches using my regex. Here is my problem... if one of the variables has a single quote it gets cut off ie/

myTestVar='my apostrophe'd val'

the group called "value" in my regex only matches up to the apostrophe. I can easily replace 1 apostrophe with 2 so it becomes

myTestVar='my apostrophe''d val'

but I cant work out how to change my regex to ignore double apostrophes in the value group...any help appretiated.
GeneralRe: Regex Help please Pin
Bitwise Gamgee25-May-05 7:53
Bitwise Gamgee25-May-05 7:53 
GeneralRe: Regex Help please Pin
J4amieC25-May-05 22:04
J4amieC25-May-05 22:04 
GeneralRe: Regex Help please Pin
John Fisher25-May-05 8:04
John Fisher25-May-05 8:04 
GeneralAdd an icon to the form bar to reduce to systemtray icon Pin
Sasuko25-May-05 5:24
Sasuko25-May-05 5:24 
GeneralCreating CHM Tool Pin
r0ssta25-May-05 5:22
r0ssta25-May-05 5:22 
Generalproblem with Image.Save : EncoderParameter(ColorDepth, ??) Pin
kyfranBibax25-May-05 5:11
kyfranBibax25-May-05 5:11 
Generalswitched from VB Pin
Anonymous25-May-05 5:09
Anonymous25-May-05 5:09 
GeneralRe: switched from VB Pin
Stefan Troschuetz25-May-05 5:28
Stefan Troschuetz25-May-05 5:28 
GeneralNUnit -- Testing separate files Pin
vcfirth25-May-05 4:01
vcfirth25-May-05 4:01 
GeneralIEnumerator&lt;&gt; and IDisposable? (VS2005) Pin
Jon Hulatt25-May-05 3:54
Jon Hulatt25-May-05 3:54 
GeneralRe: IEnumerator<> and IDisposable? (VS2005) Pin
Judah Gabriel Himango25-May-05 4:10
sponsorJudah Gabriel Himango25-May-05 4:10 
GeneralHaving trouble with custom combo box Pin
Flack25-May-05 3:45
Flack25-May-05 3:45 
GeneralRegion hit test Pin
MandMG25-May-05 2:46
MandMG25-May-05 2:46 
GeneralRe: Region hit test Pin
mav.northwind25-May-05 2:54
mav.northwind25-May-05 2:54 
GeneralRe: Region hit test Pin
MandMG25-May-05 3:05
MandMG25-May-05 3:05 
GeneralRijndael encryption with .Net and decryption with native class Pin
hubbobubbo25-May-05 2:40
hubbobubbo25-May-05 2:40 
GeneralApplication for PDA barcode scanner Pin
verma-rahul25-May-05 2:20
verma-rahul25-May-05 2:20 
Generalconversion of db file in to csv file Pin
shashank veerkar25-May-05 0:53
shashank veerkar25-May-05 0:53 
GeneralRe: conversion of db file in to csv file Pin
rudy.net25-May-05 3:14
rudy.net25-May-05 3:14 
QuestionActiveX EXE equivalent? Pin
25-May-05 0:15
suss25-May-05 0:15 
AnswerRe: ActiveX EXE equivalent? Pin
John Fisher25-May-05 7:43
John Fisher25-May-05 7:43 
GeneralRe: ActiveX EXE equivalent? Pin
Member 199247025-May-05 23:05
Member 199247025-May-05 23:05 
Generalusing string[] to call dll for const char *arg[] Pin
hhmmdd24-May-05 23:31
hhmmdd24-May-05 23:31 

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.