Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Regex

$
0
0
Try the following:       working-storage section.       01 wValido condition-value.       01 Lnk-Processo2 string.       procedure division.          move "mmsis@mmsis.com.br" to Lnk-Processo2          set wValido to type Regex::IsMatch(Lnk-Processo2,                "^(?("")("".+?(? !\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(? =[0-9a-z])@))" &               "(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-\w]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$",                type RegexOptions::IgnoreCase)          display wValido

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>