Click here to Skip to main content
15,896,502 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to extract all words - using regular expression Pin
jschell27-Oct-23 10:11
jschell27-Oct-23 10:11 
GeneralRe: How to extract all words - using regular expression Pin
Salvatore Terress27-Oct-23 14:01
Salvatore Terress27-Oct-23 14:01 
GeneralRe: How to extract all words - using regular expression Pin
Salvatore Terress28-Oct-23 5:21
Salvatore Terress28-Oct-23 5:21 
GeneralRe: How to extract all words - using regular expression Pin
k505428-Oct-23 6:27
mvek505428-Oct-23 6:27 
GeneralRe: How to extract all words - using regular expression Pin
jschell30-Oct-23 5:23
jschell30-Oct-23 5:23 
AnswerRe: How to extract all words - using regular expression Pin
Salvatore Terress29-Oct-23 4:48
Salvatore Terress29-Oct-23 4:48 
Questioncalled pointer is null... Pin
Salvatore Terress24-Oct-23 6:50
Salvatore Terress24-Oct-23 6:50 
AnswerRe: called pointer is null... Pin
k505424-Oct-23 7:01
mvek505424-Oct-23 7:01 
AnswerRe: called pointer is null... Pin
Dave Kreskowiak24-Oct-23 7:10
mveDave Kreskowiak24-Oct-23 7:10 
GeneralMessage Closed Pin
24-Oct-23 8:15
Salvatore Terress24-Oct-23 8:15 
GeneralRe: called pointer is null... Pin
Dave Kreskowiak24-Oct-23 9:00
mveDave Kreskowiak24-Oct-23 9:00 
AnswerRe: called pointer is null... Pin
Richard MacCutchan24-Oct-23 22:12
mveRichard MacCutchan24-Oct-23 22:12 
GeneralRe: called pointer is null... Pin
CPallini24-Oct-23 22:38
mveCPallini24-Oct-23 22:38 
GeneralRe: called pointer is null... Pin
jschell25-Oct-23 4:44
jschell25-Oct-23 4:44 
GeneralRe: called pointer is null... Pin
Richard MacCutchan25-Oct-23 4:50
mveRichard MacCutchan25-Oct-23 4:50 
QuestionRegular expression error ? Pin
Salvatore Terress21-Oct-23 7:42
Salvatore Terress21-Oct-23 7:42 
AnswerRe: Regular expression error ? Pin
Richard Andrew x6421-Oct-23 7:50
professionalRichard Andrew x6421-Oct-23 7:50 
AnswerRe: Regular expression error ? Pin
Richard Andrew x6421-Oct-23 8:12
professionalRichard Andrew x6421-Oct-23 8:12 
GeneralRe: Regular expression error ? Pin
Salvatore Terress21-Oct-23 8:58
Salvatore Terress21-Oct-23 8:58 
AnswerRe: Regular expression error ? Pin
Salvatore Terress22-Oct-23 6:42
Salvatore Terress22-Oct-23 6:42 
GeneralRe: Regular expression error ? Pin
David Crow23-Oct-23 2:12
David Crow23-Oct-23 2:12 
GeneralRe: Regular expression error ? Pin
Salvatore Terress23-Oct-23 5:10
Salvatore Terress23-Oct-23 5:10 
GeneralRe: Regular expression error ? Pin
k505423-Oct-23 5:50
mvek505423-Oct-23 5:50 
GeneralRe: Regular expression error ? Pin
Salvatore Terress24-Oct-23 5:01
Salvatore Terress24-Oct-23 5:01 
GeneralRe: Regular expression error ? Pin
k505424-Oct-23 6:00
mvek505424-Oct-23 6:00 
Salvatore Terress wrote:
Thanks, as long as the entry is characters , not numbers, it makes sense.

Why would they not be characters? You seem to be reading input from another command, so it should always be characters.

Salvatore Terress wrote:
Since the MAC address "hex numbers" is capitals I do not need [a-f ].

That depends. Can you guarantee that you'll always get upper case hex digits? Under linux, the arp commands uses lower case letters for the MAC address. Others might as well

Salvatore Terress wrote:
You have a good point - I'll try to delete [:] - in theory it should work.

It should. But as noted above, it would depend on where you're getting your input from. Under Windows, if you run ipconfig /all you get the Mac address separated by dashes e.g. "00-4B-35-30-35-34", so you may need to allow for that too.
Keep Calm and Carry On

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.