Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectX stipple lines Pin
Jeryth3-Nov-03 14:32
Jeryth3-Nov-03 14:32 
GeneralRe: DirectX stipple lines Pin
ZoogieZork3-Nov-03 18:18
ZoogieZork3-Nov-03 18:18 
GeneralRe: DirectX stipple lines Pin
mikeh4-Nov-03 3:05
mikeh4-Nov-03 3:05 
GeneralRe: DirectX stipple lines Pin
mikeh6-Nov-03 2:18
mikeh6-Nov-03 2:18 
GeneralGetFolderFromID() from Namespace Pin
chz171065xy3-Nov-03 7:27
chz171065xy3-Nov-03 7:27 
Generalgetline question Pin
Anonymous3-Nov-03 7:27
Anonymous3-Nov-03 7:27 
GeneralRe: getline question Pin
Alton Williams3-Nov-03 7:56
Alton Williams3-Nov-03 7:56 
GeneralRe: getline question Pin
Anonymous3-Nov-03 9:58
Anonymous3-Nov-03 9:58 
GeneralRe: getline question Pin
Joaquín M López Muñoz3-Nov-03 10:04
Joaquín M López Muñoz3-Nov-03 10:04 
GeneralRe: getline question Pin
Jeryth3-Nov-03 10:13
Jeryth3-Nov-03 10:13 
GeneralPorting from WinCE to VC++ Pin
VanHlebar3-Nov-03 7:18
VanHlebar3-Nov-03 7:18 
GeneralGetFolderFromID() from Namespace Pin
johnxx3-Nov-03 6:47
johnxx3-Nov-03 6:47 
GeneralDefault name file in serialization Pin
doctorpi3-Nov-03 5:37
doctorpi3-Nov-03 5:37 
GeneralRe: Default name file in serialization Pin
Markyg3-Nov-03 10:34
Markyg3-Nov-03 10:34 
Generalvector and delete Pin
ns3-Nov-03 5:32
ns3-Nov-03 5:32 
GeneralRe: vector and delete Pin
valikac3-Nov-03 5:44
valikac3-Nov-03 5:44 
GeneralRe: vector and delete Pin
ns3-Nov-03 5:54
ns3-Nov-03 5:54 
GeneralRe: vector and delete Pin
jhwurmbach3-Nov-03 6:32
jhwurmbach3-Nov-03 6:32 
GeneralRe: vector and delete Pin
ns3-Nov-03 7:52
ns3-Nov-03 7:52 
GeneralRe: vector and delete Pin
TFrancis3-Nov-03 8:42
TFrancis3-Nov-03 8:42 
Generalthanks! Trying it out now...... Pin
ns3-Nov-03 8:53
ns3-Nov-03 8:53 
GeneralRe: thanks! Trying it out now...... Pin
souldog3-Nov-03 9:42
souldog3-Nov-03 9:42 
GeneralRe: thanks! Trying it out now...... Pin
ns4-Nov-03 2:04
ns4-Nov-03 2:04 
GeneralStruggling with Regex Pin
DimkaSPB3-Nov-03 5:27
DimkaSPB3-Nov-03 5:27 
Hi,

I am using regex to lookup some data in a string. I do not have any prior experience using regular expression and would appreciate some help on the subject.

Here is my expression:
[^\.]\[(\s*\w+\s*)+\]

I am using it to match a string with square brackets where the first character is not a dot. So in the following string "[TableName].[FieldName]" I will only want to find "[TableName]". In "[Table1] INNER JOIN [Table2] ON [Table1].[Field1] = [Table2].[Field2]" I expect to find "[Table1]" and "[Table2]".

This seems to work in some cases, but miserably fails in others. For example, in the following string "[Table1], [Table2]", it only finds "[Table2]" since it expects to see some characted before the bracket.

Basically I want it to look at the first character before "[TableName]" only if there is one. I guess I need to make [^\.] optional but I was not able to find this option with regex syntax. Please help.

Thank you.
GeneralRe: Struggling with Regex Pin
Michael Dunn3-Nov-03 5:33
sitebuilderMichael Dunn3-Nov-03 5:33 

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.