Hello all; I'm currently working on a project which implements some XML based vulnerability tests into a remote forensics environment which allows the use of Perl to automate functions. Now, my problem is that I can't do a regex match to registry keys (the software doesn't allow it for some reason), but I need to do some simple pattern matching against keys as the XML tests call for it. I've been succesful in doing it in some cases, but without brute forcing through every key in a stupid mannor, I would like to split some of the simpler regex searches into an array to be acted and searched upon. Here's an example of what I'm looking at here;
^SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zone +s\\[0-4]$ ^SOFTWARE\\Microsoft\\Fpc\\Arrays\\\{[^\\]+\}\\Extensions\\Proxy-Plugi +ns\\\{FE440D49-AB26-11D2-A101-00C04FB6CFB6\}$
So, basically - I'm just looking to extract an array of all possible combinations given a regex. Any help on this would be greatly appreciated. Thanks agian and take care.

In reply to Regex into an Array by NathanE

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.