Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: regex for identifying encrypted text

by hippo (Canon)
on May 16, 2018 at 10:28 UTC ( #1214631=note: print w/replies, xml ) Need Help??

in reply to regex for identifying encrypted text

(1) Suggestions on how to construct such a regex?

Very difficult to avoid false positives because the last line of the key may only be a few characters.

(2) Suggestions on how to tackle the problem differently?

Text::Diff will happily work on arrays/scalars as well as files, so pre-process your inputs to remove any private keys before doing the diff - that way they are easy to identify.

  • Comment on Re: regex for identifying encrypted text

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-11-13 02:58 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (149 votes). Check out past polls.