I've got a problem I'm hoping someone's already solved or someone can point me in the direction of some possible solutions.
I need to write some PERL code that will reverse engineer a PERL regexp. That is, given a regular expression:
The code will generate a string that will match this regular expression.
e.g. code might generate the string.
"This is a test."
Has anyone looked at this type of thing before?
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>