Regex pattern equality Languages

Regex pattern equality

In ScalaTest, I have the following check:But it is not equal. I don't understand.While it's possible to decide whether two regular expressions accept the same language, it seems to be rather complicated and not all that terribly useful for everyday regex usage. Therefore, equality on compiled regex patterns is just...
Read More
What happens when creating a variable? Languages

What happens when creating a variable?

What exactly happens when the first line in Method1 is carried out?I understand memory is set aside for the string variable str, but does the right-hand side of the statement also get carried out at this stage? i.e. does it actually retrieve a value for the right-hand side?
Read More
Creating a variable Languages

Creating a variable

I'm fairly new to c# and would like to know something about the following code:What exactly happens when the first line in Method1 is carried out? I understand memory is set aside for the string variable str, but does the RHS of the statement also get carried out at this...
Read More