Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
GeneralRe: Table object Pin
OriginalGriff29-Nov-17 22:23
mveOriginalGriff29-Nov-17 22:23 
AnswerRe: Table object Pin
Richard MacCutchan29-Nov-17 21:47
mveRichard MacCutchan29-Nov-17 21:47 
GeneralRe: Table object Pin
Member 1354537529-Nov-17 21:57
Member 1354537529-Nov-17 21:57 
GeneralRe: Table object Pin
Richard MacCutchan29-Nov-17 22:03
mveRichard MacCutchan29-Nov-17 22:03 
GeneralRe: Table object Pin
Member 1354537529-Nov-17 22:14
Member 1354537529-Nov-17 22:14 
GeneralRe: Table object Pin
Richard MacCutchan29-Nov-17 22:59
mveRichard MacCutchan29-Nov-17 22:59 
GeneralRe: Table object Pin
Member 1354537529-Nov-17 23:11
Member 1354537529-Nov-17 23:11 
QuestionMatching Percent Symbol Using REGEX Pin
Liagapi29-Nov-17 15:31
Liagapi29-Nov-17 15:31 
Hello, I am trying to match a substring which contains the percent symbol using REGEX W character but it does not seem to work. Below is what I have so far.
C#
string inputString = @"#Test{border-top:Solid blue 1px; border-bottom:1% solid black;}";
string escapedString = Regex.Escape("border-bottom");
string pattern = escapedString + @"\:\s?\d+\W(\s?\w+)*\;?\s?";
Regex rgx = new Regex(pattern);
Match match = rgx.Match(matchedCss);
string matchedString = match.Value;
Console.WriteLine(matchedString);
Console.ReadLine();

The REGEX pattern above should have matched the substring
border-bottom:1% solid black;
but for some reason it did not. Please help me resolve this problem, thanks in advance.

modified 29-Nov-17 21:45pm.

GeneralRe: Matching Percent Symbol Using REGEX Pin
PIEBALDconsult29-Nov-17 16:12
mvePIEBALDconsult29-Nov-17 16:12 
GeneralRe: Matching Percent Symbol Using REGEX Pin
Liagapi29-Nov-17 16:27
Liagapi29-Nov-17 16:27 
GeneralRe: Matching Percent Symbol Using REGEX Pin
PIEBALDconsult29-Nov-17 16:46
mvePIEBALDconsult29-Nov-17 16:46 
AnswerRe: Matching Percent Symbol Using REGEX Pin
Kenneth Haugland29-Nov-17 16:31
mvaKenneth Haugland29-Nov-17 16:31 
GeneralRe: Matching Percent Symbol Using REGEX Pin
Liagapi29-Nov-17 17:02
Liagapi29-Nov-17 17:02 
GeneralRe: Matching Percent Symbol Using REGEX Pin
PIEBALDconsult29-Nov-17 17:06
mvePIEBALDconsult29-Nov-17 17:06 
GeneralRe: Matching Percent Symbol Using REGEX Pin
jschell1-Dec-17 7:48
jschell1-Dec-17 7:48 
QuestionHow To Make This Async [UPDATED] Pin
Kevin Marois29-Nov-17 6:03
professionalKevin Marois29-Nov-17 6:03 
AnswerRe: How To Make This Async [UPDATED] Pin
Dave Kreskowiak29-Nov-17 14:42
mveDave Kreskowiak29-Nov-17 14:42 
GeneralRe: How To Make This Async [UPDATED] Pin
Kevin Marois30-Nov-17 4:19
professionalKevin Marois30-Nov-17 4:19 
AnswerRe: How To Make This Async [UPDATED] Pin
Member 1351776130-Nov-17 2:36
Member 1351776130-Nov-17 2:36 
GeneralRe: How To Make This Async [UPDATED] Pin
Dave Kreskowiak30-Nov-17 4:31
mveDave Kreskowiak30-Nov-17 4:31 
GeneralRe: How To Make This Async [UPDATED] Pin
Alex Schunk8-Jan-18 8:04
Alex Schunk8-Jan-18 8:04 
GeneralRe: How To Make This Async [UPDATED] Pin
Alex Schunk8-Jan-18 8:01
Alex Schunk8-Jan-18 8:01 
QuestionSimple Injector and Strategy pattern (Register dependency runtime based on request) Pin
nikunjmochi29-Nov-17 2:02
nikunjmochi29-Nov-17 2:02 
AnswerRe: Simple Injector and Strategy pattern (Register dependency runtime based on request) Pin
Eddy Vluggen29-Nov-17 2:26
professionalEddy Vluggen29-Nov-17 2:26 
GeneralRe: Simple Injector and Strategy pattern (Register dependency runtime based on request) Pin
nikunjmochi29-Nov-17 2:34
nikunjmochi29-Nov-17 2:34 

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.