Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: run my program from DOS Pin
Ravi Bhavnani10-Apr-05 11:14
professionalRavi Bhavnani10-Apr-05 11:14 
GeneralTernary Operation Pin
Ganesh_Srim10-Apr-05 9:49
Ganesh_Srim10-Apr-05 9:49 
GeneralRe: Ternary Operation Pin
Joaquín M López Muñoz10-Apr-05 10:10
Joaquín M López Muñoz10-Apr-05 10:10 
GeneralRe: Ternary Operation Pin
Ganesh_Srim11-Apr-05 8:32
Ganesh_Srim11-Apr-05 8:32 
GeneralA regular expression needed Pin
John R. Shaw10-Apr-05 9:47
John R. Shaw10-Apr-05 9:47 
GeneralRe: A regular expression needed Pin
Michael Dunn10-Apr-05 10:25
sitebuilderMichael Dunn10-Apr-05 10:25 
GeneralRe: A regular expression needed Pin
John R. Shaw10-Apr-05 11:06
John R. Shaw10-Apr-05 11:06 
GeneralRe: A regular expression needed Pin
Michael Dunn10-Apr-05 12:05
sitebuilderMichael Dunn10-Apr-05 12:05 
I'm most familiar with the Perl regex syntax, so that's what I was using. The ? after a wildcard match means "match as few characters as possible without making the entire match fail". The difference is apparent with that sample from my earlier post:
/*foo*/ bar /*baz*/
/\*.*\*/ matches /* then foo*/ bar /*baz then */ (note the .* slurps up as much as possible, this is the default "greedy" behavior)
/\*.*?\*/ matches /* then foo then */ (the .*? only slurps up "foo" because it can stop there and still have the entire match succeed)

If you know what your input will be, and know that there will never be two comments on the same line, you should be able to go with /\*.*\*/

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD

GeneralRe: A regular expression needed Pin
John R. Shaw10-Apr-05 13:03
John R. Shaw10-Apr-05 13:03 
GeneralDundas UltimateTCP40 - question Pin
#realJSOP10-Apr-05 5:22
professional#realJSOP10-Apr-05 5:22 
GeneralParasolid Pin
4apai10-Apr-05 4:05
4apai10-Apr-05 4:05 
GeneralMessageBox in other languages Pin
a_kiani10-Apr-05 3:45
a_kiani10-Apr-05 3:45 
GeneralRe: MessageBox in other languages Pin
ThatsAlok10-Apr-05 18:29
ThatsAlok10-Apr-05 18:29 
QuestionHow to get function name by its address Pin
Dudi Avramov10-Apr-05 1:32
Dudi Avramov10-Apr-05 1:32 
AnswerRe: How to get function name by its address Pin
Joel Holdsworth10-Apr-05 5:31
Joel Holdsworth10-Apr-05 5:31 
Generalcompling .exe Pin
monageasmear10-Apr-05 0:48
monageasmear10-Apr-05 0:48 
GeneralRe: compling .exe Pin
Gary R. Wheeler10-Apr-05 2:42
Gary R. Wheeler10-Apr-05 2:42 
GeneralRe: compling .exe Pin
4apai10-Apr-05 3:52
4apai10-Apr-05 3:52 
GeneralVariable Argument (Ellipsis (...)) in MFC Win32 DLL Pin
asdf175310-Apr-05 0:09
asdf175310-Apr-05 0:09 
GeneralRe: Variable Argument (Ellipsis (...)) in MFC Win32 DLL Pin
4apai10-Apr-05 3:54
4apai10-Apr-05 3:54 
GeneralRe: Variable Argument (Ellipsis (...)) in MFC Win32 DLL Pin
asdf1753110-Apr-05 4:52
sussasdf1753110-Apr-05 4:52 
Questionhow can i know other programs change the table in access? Pin
liuyue9-Apr-05 21:46
liuyue9-Apr-05 21:46 
AnswerRe: how can i know other programs change the table in access? Pin
4apai10-Apr-05 3:56
4apai10-Apr-05 3:56 
Generaldialog box problem Pin
quistiun9-Apr-05 20:27
quistiun9-Apr-05 20:27 
GeneralRe: dialog box problem Pin
Steve Mayfield9-Apr-05 21:07
Steve Mayfield9-Apr-05 21:07 

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.