Question: weird RegSubs

I am trying to get students to solve inequalities. They have to enter intervals and I modify their response-string before processing it. Something weird happens when using RegSubs. I have reduced the behaviour to the following maple*-code: expr := convert("$RESPONSE",string); with(StringTools); expr1:=RegSubs(",(.+)[)]"=",Open(\\1))",expr); evalb(expr1="(0,Open(1))"); This returns true when I enter "(0,25)" (without the quotes of course; you can replace 25 with anything you like). So, instead of the parenthesised .+, the \\1 just yields a 1. When I execute the code in my own Maple10, the correct substitution is made. I think our server runs Maple9. Any comment is appreciated. Fons
Please Wait...