[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why hasn't regex been properly standardized? What language

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 131
Thread images: 19

File: 1479662959355.jpg (73KB, 661x688px) Image search: [Google]
1479662959355.jpg
73KB, 661x688px
Why hasn't regex been properly standardized?

What language uses the best regex?
>>
>>58876337
I'm 90% sure she has a penis
>>
Tbh, VB. The only thing it is good for.
>>
>>58876337
the standard is perl
>>
>>58876371
dis
>>
File: 1475720673149.jpg (74KB, 960x720px) Image search: [Google]
1475720673149.jpg
74KB, 960x720px
>>58876346
faggot detected.
>>
>>58876420
sauce?
>>
>>58876420
IIf one wanted to see her/him/zxe naked, what would one type into Google?
>>
>>58876476
It took me one second on Google to find her name was Alexandra Gaier. People like you should be banned from technology forums since you can't even use Google.
>>
How great would she look 9 months pregnant with your child?
>>
>>58876512
well it only took me half a second to see you're a fag
>>
>>58876512
>Alexandra Gaier
But does she get naked?
>>
File: 1455906772758.jpg (30KB, 480x480px) Image search: [Google]
1455906772758.jpg
30KB, 480x480px
>>58876531
she's a cosplayer, not a porn star you fucking autist.
>>
>>58876512
>using a botnet
>>
>>58876590
camwhores are porn stars, even if they don't take off their clothes. When a girl posts a bunch of pictures of themselves or streams with the goal being "look how hot I look", that's porn. The effect is the same, the intent is the same.
>>
>>58876337
Regex is standardized you dumbass. Anyone who studied theory of computation knows this. Everything else is an extension.
>>
>>58876590
Some cosplayers do very sensual shoots with privates showing to maximize their karma gain on Reddit.
>>
File: 1462308297072.jpg (111KB, 834x1000px) Image search: [Google]
1462308297072.jpg
111KB, 834x1000px
>>58876337
Stop posting my girlfriend.
>>
File: 1480613440856.jpg (30KB, 480x480px) Image search: [Google]
1480613440856.jpg
30KB, 480x480px
>>58876622
she's not a camwhore.

>>58876683
well, she doesn't.

stop being autistic. just because a girl is pretty and likes anime doesn't mean she's a porn star.
>>
>>58876622
>When a girl posts a bunch of pictures of themselves ... that's porn.

So, basically whole Hollywood is porn.
>>
>>58876643
\(\) in grep
() in perl
Care to explain?
>>
>>58876745
show code
>>
File: Screenshot_2017-02-09_20-18-53.png (409KB, 1237x450px) Image search: [Google]
Screenshot_2017-02-09_20-18-53.png
409KB, 1237x450px
>>58876710
feels good man
>>
File: 1477445926044.jpg (47KB, 799x443px) Image search: [Google]
1477445926044.jpg
47KB, 799x443px
>>58876476
Well generally you would start with a reverse image search
>>
>>58876371
This. PCRE is the standard. Everything else may as well be considered nonconforming
>>
>>58876337
>Why hasn't regex been properly standardized?

POSIX RE.
>>
File: regex.png (32KB, 780x432px) Image search: [Google]
regex.png
32KB, 780x432px
>>58876371
>>58876814
Perl/PCRE is complete garbage.
Source: https://swtch.com/~rsc/regexp/regexp1.html
Note the logarithmic scale on the Y axis.
Also, this is a fundamental flaw with their Regex implementation.
>>
>>58876784
$ echo 'foobar' | grep 'foo\(bar\|baz\)'

$ echo 'foobar' | perl -pe '/foo(bar|baz)/'
>>
>>58876873
Fine, then implement it better yourself. PCRE just means perl COMPATIBLE regular expressions. It's still just a syntax, not an implementation. Just because they implemented it in a dumb way doesn't mean the standard itself is bad.
>>
>>58876942
Due to the syntax they support, they HAVE to implement it in a stupid way.
If you learn some CS theory and why regexes are so great, you'll see that the exponential implementations there support things which are not regular. Back references is one of the most obvious misfeatures causing that.
That article I posted is actually an interesting read.
>>
File: 1483292918938.jpg (225KB, 762x868px) Image search: [Google]
1483292918938.jpg
225KB, 762x868px
>>58876590
I asked for nudes, not her bio.
>>
>>58877087
I don't do most of these anyways, roll
>>
>>58877087
Rolling
>>
>>58877087
roll
>>
>>58876939
CO\{2\}L
>>
>>58877087
rolling
>>
>>58877087
>>
>>58877087
Time 2 roll
>>
>>58876622
nah i'd say images designed to sexually excite is porn but thats just me i don't really get turned up too much by girls dressing up as anime
>>
>>58877087
Based Varg
>>
>>58876512
Thanks, I just wanted someone else to do it for me
>>
>>58877087
might as well roll
>>
>>58876791
Holy shit I tried looking for that website a while back
What is it called?
>>
>>58877087
rolling
>>
>>58877787
http://whatpornstars.com/
>>
>>58877087
I won't do it, but w/e
>>
>>58877087
tell me ig varf
>>
File: chillernes.jpg (100KB, 990x658px) Image search: [Google]
chillernes.jpg
100KB, 990x658px
>>58877087
Varg me up, dices of (mis)fortune!
>>
>>58877087
reroll
>>
>>58876337
I use regex in Ruby and it seems bretty good.
>>
>>58876371
/thread
>>
>>58877087
roll
>>
File: ss (2017-02-09 at 11.10.33).png (37KB, 998x301px) Image search: [Google]
ss (2017-02-09 at 11.10.33).png
37KB, 998x301px
>>58876873

>Perl/PCRE is complete garbage.

That's a deliberately misleading comparison, and fuck you for posting it. That graph is the result of a specific pathological case in Perl/PCRE regular expressions.

Why is it so much slower? Because Perl regexps use a simplified recursive backtracking algorithm. Why did Perl use a simplified recursive backtracking algorithm? Because UNIX regexps don't support back-references. The author of the paper tries to weasel out of this by trying to say that regexps with back-references aren't technically regular expessions, and he's right in an academic sense, but like most academics, nobody actually gives a shit in the real world and people continue to use Perl and PCRE because they want back-references.

So why not implement two parsers in PCRE? Maybe they've actually done this in the decade since this paper was posted, but as it turns out, if you're not looking for pathological cases, your comparison graph is more likely to look like pic related, where you'll notice that the Perl regex beats the UNIX implementation handily until n >= 25 or so. And chances are, if you're actually hitting a pathological case with regexps, you should be implementing your own string parser anyway, it's not hard and you can even drive it with simpler regexes if you need help.
>>
>>58876337
sed and awk

I always felt PHP did a pretty good job with preg_match
>>
>>58877087
rawlin
>>
>>58877087
Rawl
>>
>>58877087
Rolling
>>
>>58876724
How's that English comprehension course treating ya?
>>
>>58876337
Did you just learn about regular expressions? What was the purpose of this thread?
>>
>>58877087
.
>>
>>58877087
Rooooooooollllllllinnnnnnngggg
>>
>>58876420
dat cat
>>
>>58876791
>Elle Alexandra
she doesn't have any tits but goddamn, she makes me all sweating_man.jpg .

>Linda Sweet
If she didn't have that Lovecraft mouth she would have been a 10/10.
>>
>>58876420
>>58876337
How long until she gets blacked?
>>
>>58877087
rolling
>>
>>58877087
>>58881599
aw fuck

fuuucckkkkkkkkk

FUCK YOU VARGGGG
>>
>>58877087
rolling for papa varg
>>
>>58881612
PHEW
>>
File: 1485130476978.jpg (1MB, 1412x1000px) Image search: [Google]
1485130476978.jpg
1MB, 1412x1000px
>>58877087
rel
>>
>>58877087
let's see
>>
>>58877087
Let's go
>>
>>58881585
>How long until she gets blacked?
she's russian. no niggers there.
>>
>>58877087
bowling
>>
>>58876745
>>58876939
>>58877152

Isn't it because of shell globbing? Similar thing is in python 3, you have to use raw strings (r'foo') to escape the backslash hell.
I'm also always confused whenever I use regex search in Vim.
>>
>>58877087
If it's anime I will ignore it
>>
>>58877087
Roll
>>
>>58877669
Do you live in the 90s? Modern cosplay is like 90% softcore porn, especially professional. The other dude is still a moron for expecting nudes, tho.
>>
>>58878199
>and he's right in an academic sense, but like most academics, nobody actually gives a shit in the real world
this
>>58876337
though, if you actually want good parsers using grammars, just use Perl 6 grammars in Rakudo, now that it's out
>>
>>58877087
rollen
>>
>>58882709
It was nice knowing y'all.
>>
File: not_a_camwhore.jpg (69KB, 642x960px) Image search: [Google]
not_a_camwhore.jpg
69KB, 642x960px
>>58876710

>she's not a camwhore.

Give her two years.
Pic related.


>>58877087

Hey Varg, what's up?


>>58878199

Thanks for clarifying!
>>
File: tfw.png (65KB, 1145x369px) Image search: [Google]
tfw.png
65KB, 1145x369px
>>58876791
>>
>>58882763
Moarrr
>>
>>58882842
Sad. But good for fighting degeneracy
>>
>>58882763
Is she still Virgin?
>>
>>58877087
lel this thread
>>
>>58882944
No, she got married.
>>
>>58877087
öl
>>
>>58877087
Stop home schooling your kids with tabletop games
>>
>>58877087
Roll
>>
>>58877087

rollan
>>
>>58876622
>camwhores are porn stars, even if they don't take off their clothes.
Good god your autism spergs out of your head.
Kill yourself.
>>
File: 1481792894821.jpg (50KB, 400x500px) Image search: [Google]
1481792894821.jpg
50KB, 400x500px
>>58882763
>those feet
>>
>>58877087
roll
>>
>>58876337
one of the things any decent (not lazy) programmer should know, if that person has addressed regex

it says in the oreilly regex manual that the regex process (program) "is only a few thousand lines long" ...

it's a small thing that introduces a great deal of complication to lazy idiots

all regex is, is a stack orientated macro facility

but the "clever" idiots walking around putting in
spurious and cleverly complicated, tight little codes think they have some sort of grail. whatever they do, they are not aware of the processing that is going on in that 'couple of thousand lines of code'; they are heavily reliant on it when they need not be.

better to write explicit things, but there are no standards
>>
>>58876346
More like 100% has one
>>
>>58876337
What's even the point of standardizing? It's not like everyone follows SQL or something...
>>
>>58883117
my point was that the regex program itself, is only a couple of thousand lines of code

but the full regex book (oreilly), is @ least a 1000 PAGES..

regex complicates everything

AVOID
>>
>>58877087
quad 4s get
>>
>>58883173
shit, i guess i'm outta here
>>
>>58877087
Rolling for thread derailment
>>
>>58883252
Rolling again because nobody is actually religious in 2017
>>
>>58883252
>>58883262
Rolling again because this is getting ridiculous
>>
>>58877087
testing
>>
File: Regex-Cheat-Sheet.png (1MB, 1600x846px) Image search: [Google]
Regex-Cheat-Sheet.png
1MB, 1600x846px
>>58883164

>t. too-stupid-for-regular-expressions
>>
>>58877087
rock'n'rollan
>>
>>58877087
roll for life change
>>
>>58877087
Don't fuck me, varg
>>
>>58876337
If you use Regex for anything better fuzz the fuck out of it, there's all kinds of logic errors if you use it for anything important like Lastpass did to parse urls https://news.ycombinator.com/item?id=12171547

I only use regular expressions primarily to parse log files and other day to day things (AWK) that won't introduce vulnerabilities into my software.
>>
>>58877087
crunchyroll
>>
>>58883529
>two titles per column
>Anchros

Can't do anything right.
>>
>>58877087
Roll
>>
>>58877087
ok
>>
>>58877087
duydfg
>>
>>58877087
roll
>>
>>58876337
>tfw no asuka gf
>>
>>58877087
Roll
>>
>>58876337
C#
/thread
>>
>>58877087
mandatory roll
>>
>>58877087
rollingu
>>
File: 1439120180856.jpg (4KB, 250x219px) Image search: [Google]
1439120180856.jpg
4KB, 250x219px
>>58876337
who is she
>>
>>58881585
Hopefully soon, at least we get to see her naked
>>
>>58877087
>>
>>58884974
asuka langley
>>
File: 1444075542036.gif (2MB, 300x228px) Image search: [Google]
1444075542036.gif
2MB, 300x228px
>>58876512
>people like you should be banned from technology forums since you can't even use Google.
>Google

The irony is unbearable
>>
>>58877087
checka
>>
>>58876622
KYS turboautist
>>
>>58877087
Roll
>>
>>58877087
Rolling
>>
>>58876337
Perl
>>
>>58877087
Rolling gooooooooo
Thread posts: 131
Thread images: 19


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.