Okay thanks :) Here is a code snippet :
if ($nr == $quiz_id{"$quizzer"}) { $window->print ("Id answer : $reply", MSGLEVEL_NEVER) if ($window); $exit = 0; } elsif ( '$question' == '$quiz_question{"$quizzer"}' ) { $window->print ("Quiz answer : $reply", MSGLEVEL_NEVER) if ($window); $exit = 0; } For the moment the two strings is represented as this : '$question' == '$quiz_question{"$quizzer"}' I know this doesn't work and that is what I want to replace with the regexp comparsion... /juman On Tue, Mar 23, 2004 at 11:25:17AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 11:08 AM, juman wrote: > > >Okey here we go :) > > > >I have a text string that can be looking something like this : > > > >Language: French -> Swedish: Fille ? > > > >And then I have another text that can look just about like anything and > >I want to compare the two strings. But the symbols > and ? makes this a > >bit hard to match with a regexp... > > Yes, I got that. Post the code where you are doing the comparison and > I'll insert the \Q and \E in the right place for you. ;) > > James > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>