SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[regex] What is a regular expression for a MAC Address?
Home
Question
What is a regular expression for a MAC Address?
/(?:[A-Fa-f0-9]{2}[:-]){5}(?:[A-Fa-f0-9]{2})/
Examples related to
regex
•
Why my regexp for hyphenated words doesn't work?
•
grep's at sign caught as whitespace
•
Preg_match backtrack error
•
regex match any single character (one character only)
•
re.sub erroring with "Expected string or bytes-like object"
•
Only numbers. Input number in React
•
Visual Studio Code Search and Replace with Regular Expressions
•
Strip / trim all strings of a dataframe
•
return string with first match Regex
•
How to capture multiple repeated groups?