Solved

regular expression

Posted on 2004-10-29
287 Views
Last Modified: 2013-12-24
I am not able to replace the #char(10)##char(13)# with <P> regular expression. This is what I am using.
REReplace("mystring","#char(10)##char(13)#","<P>","ALL")#
Nothing happens whenever I output mystring again it gives me the same result.
This is very urgent.
0
Question by:pathcf
    8 Comments
     
    LVL 22

    Accepted Solution

    by:
    1) remove the extra quotes around mystring like this...
    REReplace(mystring,"#char(10)##char(13)#","<P>","ALL")#

    are you sure y ou are surrounding it with cfoutput when you try to put the string?
    0
     
    LVL 22

    Expert Comment

    by:pinaldave
    2) "#char(10)##char(13)#"
    is correct but I am using "#ch(13)##ch(10)#"
    try that also...
    Regards,
    ---Pinal
    0
     

    Author Comment

    by:pathcf
    pinaldave thank you for quick resonse. I know that much atleast to cover the output with cfoutput.
    where can i find more info for char like this?
    I will try and will tell you.
    0
     
    LVL 22

    Expert Comment

    by:pinaldave
    well, http://www.asciitable.com/ you can find more information.
    0
     

    Author Comment

    by:pathcf
    thank you. I think it works. Nice game with ascii.
    0
     
    LVL 22

    Expert Comment

    by:pinaldave
    well glad to help you...
    which game of ascii ?
    Regards,
    ---Pinal
    0
     

    Author Comment

    by:pathcf
    if you go to that ascii page you send me there is  a game on right side about clicking button.
    0
     
    LVL 22

    Expert Comment

    by:pinaldave
    =)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Cisco Complete Network Certification Training

    If you’re an IT engineer or technician, it's time you take your career to the next level. This elite training bundle is brimming with all of the information you need to learn to sit for Cisco CNNA, CCNP, and CCENT certification exams.

    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now