Click here to Skip to main content
15,913,685 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: about System.IO.FileLoadException Exception from HRESULT: 0x800736B1 (Could not load file or assembly ...) Pin
Super Lloyd5-Jan-07 10:17
Super Lloyd5-Jan-07 10:17 
QuestionI want a .net User Interface to display office files Pin
indian1434-Jan-07 18:22
indian1434-Jan-07 18:22 
AnswerRe: I want a .net User Interface to display office files Pin
Christian Graus4-Jan-07 18:36
protectorChristian Graus4-Jan-07 18:36 
GeneralRe: I want a .net User Interface to display office files Pin
indian1434-Jan-07 19:20
indian1434-Jan-07 19:20 
GeneralRe: I want a .net User Interface to display office files Pin
Christian Graus4-Jan-07 19:44
protectorChristian Graus4-Jan-07 19:44 
GeneralRe: I want a .net User Interface to display office files Pin
Pete O'Hanlon5-Jan-07 2:55
mvePete O'Hanlon5-Jan-07 2:55 
GeneralRe: I want a .net User Interface to display office files Pin
indian1435-Jan-07 3:23
indian1435-Jan-07 3:23 
Questionregex name/value pairs Pin
campk4-Jan-07 8:53
campk4-Jan-07 8:53 
a little stumped with a regex i've been working on...
trying to parse name/value pairs from a string - I have something close, but it chokes on certain cases.

(?# PROPERTY )(?<property>[a-zA-Z0-9_]*)\x20*?(?# OPERATOR )(?<operator>>=|<=|<|>|=|!=|LIKE)(?# Value )\x20*?'?\w+'?

// any property name of any length, captured into backreference 'Property'
(?<property>[a-zA-Z0-9_]*)

// whitespace, 0+, minimal matching
\x20*?

//any of the operators >=, <=, <, >, =, !=, LIKE captured into backreference 'Operator'
(?<operator>>=|<=|<|>|=|!=|LIKE)

// whitespace, 0+, minimal matching
\x20*?

// single quote, 0-1
// followed by word character, 1+
// followed by single quote, 0-1
'?\w+'?

I am looking to match (and extract) name/operator/value pairs from a string, such as...

PropertyName='SomeValue' AND IntProperty < 9 OR AnotherProperty LIKE 'this is a test'

the regex i have above works fine for the first two terms, but then when you get a quoted string, it only matches up to the first space... This is only ever going to be an issue with the quoted strings, anything else will assume a word boundary on whitespace, which is the desired behavour.

I need that last part of the Regex to basically say "if we're enclosed in single quotes, get anything between the opening and closing quote; otherwise, match everything up to whitespace"

any help is much appreciated. (or if anything spots any weak spots in the Regex i have so far..)
thanks -
AnswerRe: regex name/value pairs Pin
Keith Malwitz5-Jan-07 1:40
Keith Malwitz5-Jan-07 1:40 
QuestionRe: regex name/value pairs [modified] Pin
campk5-Jan-07 3:16
campk5-Jan-07 3:16 
AnswerRe: regex name/value pairs Pin
Keith Malwitz5-Jan-07 17:55
Keith Malwitz5-Jan-07 17:55 
AnswerRe: regex name/value pairs Pin
Mike Dimmick5-Jan-07 6:27
Mike Dimmick5-Jan-07 6:27 
Questionnon-selectable item in treeview Pin
Russell Jones4-Jan-07 4:18
Russell Jones4-Jan-07 4:18 
QuestionDrawString and text wrapping Pin
Ray Cassick4-Jan-07 3:14
Ray Cassick4-Jan-07 3:14 
AnswerRe: DrawString and text wrapping Pin
Luc Pattyn4-Jan-07 9:05
sitebuilderLuc Pattyn4-Jan-07 9:05 
GeneralRe: DrawString and text wrapping Pin
Ray Cassick4-Jan-07 9:50
Ray Cassick4-Jan-07 9:50 
QuestionProperty paths in .NET 3.0 / WPF Pin
FalkoD3-Jan-07 7:20
FalkoD3-Jan-07 7:20 
QuestionData source updated even if e.Cancel = true in Validating handler Pin
roel_v3-Jan-07 6:59
roel_v3-Jan-07 6:59 
Questionopengl csgl taoframwork or direct3d [modified] Pin
Taylor Kobani3-Jan-07 5:34
Taylor Kobani3-Jan-07 5:34 
Question"Full Screen printing" Pin
Silver-Grey3-Jan-07 3:44
Silver-Grey3-Jan-07 3:44 
AnswerRe: "Full Screen printing" Pin
Ray Cassick4-Jan-07 3:15
Ray Cassick4-Jan-07 3:15 
QuestionCan I get any .net developpped library with proper UI Pin
indian1432-Jan-07 18:40
indian1432-Jan-07 18:40 
AnswerRe: Can I get any .net developpped library with proper UI Pin
Christian Graus2-Jan-07 23:35
protectorChristian Graus2-Jan-07 23:35 
GeneralRe: Can I get any .net developpped library with proper UI Pin
indian1433-Jan-07 2:19
indian1433-Jan-07 2:19 
GeneralRe: Can I get any .net developpped library with proper UI Pin
Christian Graus3-Jan-07 8:52
protectorChristian Graus3-Jan-07 8:52 

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.