Use alternation to match the exact two substrings you intend to match.
m/\b16 03 01 (?:34 23|39 4b) 0b\b/
This regular expression pattern will only match the two substrings...
16 03 01 34 23 0b
16 03 01 39 4b 0b
The word boundary assertion \b ensures you won't wrongly match a substring like 916 03 01 34 23 0bf.
Jim
In reply to Re: Creating spacers in regex match
by Jim
in thread Creating spacers in regex match
by ahuang14
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |