sashok
sashok
CC#
Created by sashok on 6/28/2024 in #help
Unable to get the FieldInfo's value
The fields are found properly, and the value's type is checked properly too, it's just that GetValue returns the empty string in Unity. I'll try to research this thing. Thank you a lot for your help!
7 replies
CC#
Created by sashok on 6/28/2024 in #help
Unable to get the FieldInfo's value
Just run it in a console app and this works fine there. Seems like a Unity problem, since that's where I initially run it.
7 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
Thank you 🙂
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
I'll use this variant then
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
I see, I guess I got a bit too excited about using regex in all the cases
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
so how would your recommend to implement it?
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
Yes, the purpose of the pattern is just to match the e outside of the brackets. It shouldn't include looking for errors
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
)(()e
)(()e
In this case I don't really care whether e is matched or not. E is probably outside of the parantheses, but the format is wrong and I'm gonna throw an error for this input. So it doesn't matter whether e is matched here
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
in this case there're not enough parantheses, no e should be matched
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
And the format can be wrong too.
)e(
)e(
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
so (e) is inside of them, ()e - ouside
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
In this case just es ouside of the parentheses should be matched
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
Yes, parentheses can be nested. E.g.
e+((((e)+e)+e))+e
e+((((e))))()(())+e
e+((((e)+e)+e))+e
e+((((e))))()(())+e
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
Oh, was writing the answer and discord suddenly crashed.
14 replies
CC#
Created by sashok on 2/17/2024 in #help
Regex - Match a string outside of the parentheses
Even though quite a similar pattern finds them properly.
(?:[^()]|(?<a>\()|(?<-a>\)))+(?(a)(?!))
(?:[^()]|(?<a>\()|(?<-a>\)))+(?(a)(?!))
https://regex101.com/r/BE4OLO/1
14 replies
CC#
Created by sashok on 7/31/2023 in #help
Cannot connet to localhost:5432
thx
30 replies
CC#
Created by sashok on 7/31/2023 in #help
Cannot connet to localhost:5432
ok
30 replies
CC#
Created by sashok on 7/31/2023 in #help
Cannot connet to localhost:5432
when
30 replies
CC#
Created by sashok on 7/31/2023 in #help
Cannot connet to localhost:5432
how do I?
30 replies
CC#
Created by sashok on 7/31/2023 in #help
Cannot connet to localhost:5432
yes.
30 replies