Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by choroba (Chancellor)
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/
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Regex trouble w/ embedded 0s?
by AnomalousMonk (Canon) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-12-06 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.