Message from @Gsurus

Discord ID: 279738967275077635


2017-02-10 22:22:19 UTC  

. means every character except \n

2017-02-10 22:22:30 UTC  

* means 0 or an infinite of them

2017-02-10 22:22:33 UTC  

oo

2017-02-10 22:22:34 UTC  

o

2017-02-10 22:22:34 UTC  

o

2017-02-10 22:22:35 UTC  

o

2017-02-10 22:22:35 UTC  

o

2017-02-10 22:22:36 UTC  

ooo

2017-02-10 22:22:36 UTC  

o

2017-02-10 22:22:36 UTC  

o

2017-02-10 22:22:36 UTC  

oo

2017-02-10 22:22:37 UTC  

o

2017-02-10 22:22:39 UTC  

g means global search

2017-02-10 22:22:44 UTC  

o

2017-02-10 22:22:44 UTC  

o

2017-02-10 22:22:44 UTC  

@Towelie I assume regex is a programming language?

2017-02-10 22:22:44 UTC  

o

2017-02-10 22:22:44 UTC  

o

2017-02-10 22:22:45 UTC  

o

2017-02-10 22:22:45 UTC  

o

2017-02-10 22:22:47 UTC  

Ah, that seems really nice.

2017-02-10 22:22:53 UTC  

and i case incensitive

2017-02-10 22:22:53 UTC  

Regex isn't a programming language tho

2017-02-10 22:23:20 UTC  

More like language theory

2017-02-10 22:23:24 UTC  

it's a regular expression for text searching

2017-02-10 22:23:50 UTC  

can I get a quick rundown?

2017-02-10 22:23:51 UTC  

it recognize pattern

2017-02-10 22:24:02 UTC  

what is it for

2017-02-10 22:24:11 UTC  

Searching text for patterns

2017-02-10 22:24:14 UTC  

here

2017-02-10 22:25:04 UTC  

something like this for example : `/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i` will recognize an email address

2017-02-10 22:25:30 UTC  

so what email address would that be?

2017-02-10 22:25:38 UTC  

any

2017-02-10 22:25:41 UTC  

or do you mean, if you define symbols

2017-02-10 22:26:05 UTC  

it define the pattern that makes an email address valid

2017-02-10 22:26:11 UTC  

like what was going on with that romanji

2017-02-10 22:26:16 UTC  

I mean

2017-02-10 22:26:32 UTC  

it was just used as a simple search and replace

2017-02-10 22:26:46 UTC  

you can either match a pattern, or replace a pattern with regex

2017-02-10 22:27:26 UTC  

yeah, what I was using wasnt regex