I haven't tried any of them, but i believe some IDE's have regular expression builders.. googling for "activestate perl regular expression editor" led me to Visual Perl which is a complete Perl development environment plug-in for Visual Studio .NET and has a Regular Expression (Rx) toolkit for almost effortless creation and debugging of powerful regular expressions.
Other than that, if they're are to be totally isolated from code but still help with the patterns, there's probaly a decent amount of help they can be and you can do the actual perl implementation.. some thoughts:
- They can describe patterns in a pseudo-code manner. "Will have 2 letters followed by 6 digits and then either 'ABC' or 'XYZ'"
- They can provide lists of example strings that should match, and lists of example strings that should not match.
- you can start with the pseudo-code and introduce the basics from there so they can adopt things like \d, \D, \S and \s in their short-hand
- depending on how they learn, you can give more (greediness, quantifiers, etc).. maybe let them know at least that those and other things (look ahead/behinds) are possible so they can take that into account in the pseudo-code w/o knowing the real syntax.
- hopefully they can pick up enough from seeing how their english descriptions turn into patterns to speed along your development
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<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>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|