Internal Regex example added.
This commit is contained in:
parent
c69b3fa872
commit
fa29289a3f
|
@ -1,3 +1,9 @@
|
|||
/*The following trailing characters can be used:
|
||||
* i, letters in the pattern match both upper- and lowercase letters
|
||||
* m, the "start of line" and "end of line" constructs match immediately following or immediately before any newline in the string, respectively, as well as at the very start and end.
|
||||
* s, a dot metacharater . in the pattern matches all characters, including newlines. Without it, newlines are excluded.
|
||||
* x, whitespace data characters in the pattern are totally ignored except when escaped or inside a character class.
|
||||
*/
|
||||
bool is_valid_email(string email) {
|
||||
var status = true;
|
||||
stdout.puts(@"$email is ");
|
||||
|
|
Loading…
Reference in New Issue