Size: a a a

Regular Expressions

2020 December 29

X

X in Regular Expressions
is this regex just for php?
источник

Лс

Лень с Самосознанием... in Regular Expressions
X
is this regex just for php?
Turns out yes... Neither Go or Python support recursion
источник

Лс

Лень с Самосознанием... in Regular Expressions
X
so possibly will not work on my Golang project (yes tried and not worked)
How deep can it go?
источник

X

X in Regular Expressions
up to 10k chars, sir
источник

X

X in Regular Expressions
think like (()()((())))()........
источник

X

X in Regular Expressions
so, is not possible to catch just top parantheses?
источник

DE

Denis Efremov in Regular Expressions
What do you mean just top?
источник

X

X in Regular Expressions
wait pls, i will draw it
источник

Лс

Лень с Самосознанием... in Regular Expressions
X
up to 10k chars, sir
I meant how many pairs of parenthesis.
For example here is 3
((()))
And here is 3 and a 1
((())())
This is what's called "depth"
источник

Лс

Лень с Самосознанием... in Regular Expressions
Denis Efremov
What do you mean just top?
Только самые внешние
источник

X

X in Regular Expressions
источник

DE

Denis Efremov in Regular Expressions
А внутри?
источник

DE

Denis Efremov in Regular Expressions
What about content inside?
источник

X

X in Regular Expressions
Denis Efremov
What about content inside?
nothing else, just parantheses
источник

X

X in Regular Expressions
Denis Efremov
What about content inside?
if the first option is not possible or hard, we can try to catch the top parantheses instead of the content inside
источник

X

X in Regular Expressions
Лень с Самосознанием
I meant how many pairs of parenthesis.
For example here is 3
((()))
And here is 3 and a 1
((())())
This is what's called "depth"
its not certain :(
источник

DE

Denis Efremov in Regular Expressions
What is your goal?
источник

Лс

Лень с Самосознанием... in Regular Expressions
Denis Efremov
А внутри?
В этом и загвоздка...
источник

X

X in Regular Expressions
1: catching the parantheses inside of "the top parantheses"
источник

X

X in Regular Expressions
2: if 1st option is not possible or hard, catching the top parantheses instead of the content inside
источник