|
-
Oct 7th, 2024, 10:06 AM
#1
Thread Starter
Frenzied Member
Regex for mac address
My regex skills are weak. Can anyone provide me a regex string to parse MAC addresses, in the format of xx:xx:xx:xx:xx:xx from lines read in from a text file? Much appreciated. Thanks...
-
Oct 7th, 2024, 10:11 AM
#2
Re: Regex for mac address
Found several using Google.
One of the results suggested
([0-9a-fA-F][0-9a-fA-F][-:]){5}([0-9a-fA-F][0-9a-fA-F])
Last edited by dbasnett; Oct 7th, 2024 at 10:20 AM.
-
Oct 7th, 2024, 10:38 AM
#3
Thread Starter
Frenzied Member
Re: Regex for mac address
Thank you. That's an interesting website.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|