Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Regex trouble w/ embedded 0s?

by choroba (Abbot)
on Jul 11, 2014 at 12:40 UTC ( #1093219=note: print w/ replies, xml ) Need Help??


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

I dunno, prolly

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


Comment on Re^3: Regex trouble w/ embedded 0s?
Download Code
Re^4: Regex trouble w/ embedded 0s?
by AnomalousMonk (Abbot) 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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1093219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2014-09-17 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (92 votes), past polls