in reply to Re^2: Regex trouble w/ embedded 0s?
in thread Regex trouble w/ embedded 0s?

I dunno, prolly
/^.{36,}?\0\0\0/
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Regex trouble w/ embedded 0s?
by AnomalousMonk (Archbishop) on Jul 11, 2014 at 13:00 UTC

    But that doesn't differentiate between the first 36 chars and the subsequent whatsit, and includes the \0\0\0, and needs the use of  $& or a substr operation to access what was matched. My guess (supported by roboticus's later post) was that the chunks were wanted separately, sans terminator. Given that assumption, the regex didn't seem so strange. But there are many paths...