Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 1:51 PM, juman wrote: That solved my problem :-) Thanks for the help I probably put toomuch thought into solving this simple thing ;-) Glad to hear it. If you learned something, it was worth the effort. Next time though, post your code so we can help guide you to what you

Re: Replace every character

2004-03-23 Thread juman
That solved my problem :-) Thanks for the help I probably put toomuch thought into solving this simple thing ;-) /juman On Tue, Mar 23, 2004 at 01:29:42PM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 1:23 PM, juman wrote: > > >Okay thanks :) > > > >Here is a code snippet : > > > >

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 1:23 PM, juman wrote: 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"}' ) {

Re: Replace every character

2004-03-23 Thread juman
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 : $re

Re: Replace every character

2004-03-23 Thread James Edward Gray II
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 ? ma

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 10:07 AM, juman wrote: Hmmm this just seems to return 1. Doesn't m/ just meen to match the expression? Yes it does and yes it does. Give me an example of how you were using this data in your script and I'll show you how it relates. ;) James -- To unsubscribe, e-mail: [EMAI

Re: Replace every character

2004-03-23 Thread juman
Hmmm this just seems to return 1. Doesn't m/ just meen to match the expression? /juman On Tue, Mar 23, 2004 at 09:40:42AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 9:32 AM, juman wrote: > > >Not sure I understand what you say here... > > > >Should I do this then? > > > >$data = "q

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 9:32 AM, juman wrote: Not sure I understand what you say here... Should I do this then? $data = "question?" $newdata = m/\Q$data\E/ I believe you meant: $newdata =~ m/\Q$data\E/; Hope that helps. James Because I couldn't get that to work? /juman On Tue, Mar 23, 2004 at

Re: Replace every character

2004-03-23 Thread juman
Not sure I understand what you say here... Should I do this then? $data = "question?" $newdata = m/\Q$data\E/ Because I couldn't get that to work? /juman On Tue, Mar 23, 2004 at 09:03:15AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 8:54 AM, juman wrote: > > >I have a script that

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 8:54 AM, juman wrote: I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?:>< etc which makes them hard to check through a regexp. So I want to replace alla characters like this: question? => \q\u\e\s\t

Re: Replace every character

2004-03-23 Thread WC -Sx- Jones
juman wrote: I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?:>< etc which makes them hard to check through a regexp. So I want to replace alla characters like this: question? => \q\u\e\s\t\i\o\n\? I'll give you a hint: