--- "Luciano ES" <[EMAIL PROTECTED]> wrote:
> 3 - Testing the Regex plug-in:
> 
> myChoice = "one line, two lines, three lines"
> Regex.Match (myChoice, "(,.*h)", "\\1", "myMatch1")
> Regex.Replaceg (myChoice, ",", "\\n", "myMatch2")
> myChoice = "&(myMatch1) \n\n----------------\n\n&(myMatch2)"
> Note Open pos 0 0 text 16777215 back 12615680 size 800 550 settext
> "&(myChoice)"
> 
> 
> A note pops up. I expect to see...
> 
> ", two lines, th []----------------[]one line\n two lines\n three lines"
> 
> ... but I see...
> 
> ", two lines, th []----------------[]one line[] two lines[] three lines"

I thought this was the same question as 2, but I noticed
it was a different one. If you want to obtain the expected
result, you have to replace "\\n" to "\\\\n", or simply
use ?"\\n". The reason is as follows:
MyMatch2="one line\n two lines\n three lines"
&(MyMatch2)=one line"0x0A" two lines"0x0A" three lines

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to