You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have this regex expression STRING = r'[^\[\][^\n"]+' to get capture text to save into a variable, but I also have another part of my program which uses literals of ( and ) to do math, such as 5 add ( 5 minus 2 ) = 8. However my issue is that when I run my test and I actually type in the same thing into the interpreter, it causes an error and I'm not sure why? It should show that instead of ( 5 add 5 ) is a STRING, it will be made up of a ( NUMBER ADD NUMBER ), but individual tokens.
So I have this regex expression
STRING = r'[^\[\][^\n"]+'
to get capture text to save into a variable, but I also have another part of my program which uses literals of(
and)
to do math, such as5 add ( 5 minus 2 ) = 8
. However my issue is that when I run my test and I actually type in the same thing into the interpreter, it causes an error and I'm not sure why? It should show that instead of( 5 add 5 )
is a STRING, it will be made up of a( NUMBER ADD NUMBER )
, but individual tokens.The text was updated successfully, but these errors were encountered: