Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The following showed up in this morning's PANS e-mail from Progress:</p> <p><a href="http://knowledgebase.progress.com/articles/Article/000039027?popup=true" rel="nofollow">http://knowledgebase.progress.com/articles/Article/000039027?popup=true</a></p> <p>The following example shows how to use regular expressions within ABL:</p> <pre><code> /* * IN TESTING, THIS DOESN'T WORK WITH MY INSTALLATION OF VERSION 10.2B RHEL 6, * BUT IT DOES WORK WITH VERSION 10.2B WINDOWS INSTALLATION * * THE ERROR RETURNED ON THE LINUX ENVIRONMENT IS: * │Could not find class or interface Regex. (12886) */ USING System.Text.RegularExpressions.*. DEFINE VARIABLE chaine AS CHARACTER NO-UNDO INIT "test@test.com". DEFINE VARIABLE i AS INTEGER NO-UNDO. DEFINE VARIABLE regexp AS CLASS Regex NO-UNDO. regexp = NEW Regex("^[^\x00-\x1F^\(^\)^\&lt;^\&gt;^\@^\,^\;^\:^\\^\~"^\.^\[^\]^\s]+(\.[^\x00-\x1F^\(^\)^\&lt;^\&gt;^\@^\,^\;^\:^\\^\~"^\.^\[^\]^\s]+)*@([^\x00-\x1F^\(^\)^\&lt;^\&gt; ^\@^\,^\;^\:^\\^\~"^\.^\[^\]^\s]+(\.[^\x00-\x1F^\(^\)^\&lt;^\&gt;^\@^\,^\;^\:^\\^\~"^\.^\[^\]^\s]+))+$"). DO i = 1 TO 100: IF regexp:IsMatch(chaine) THEN MESSAGE "OK". ELSE MESSAGE "KO" . END. DELETE OBJECT regexp. </code></pre> <p>The code example above is specifically for Windows. To use regular expressions with UNIX (or Linux) you need to work with the appropriate libraries for that OS. An example can be found here:</p> <p><a href="http://dbappraise.com/ppt/shlib.pptx" rel="nofollow">http://dbappraise.com/ppt/shlib.pptx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload