Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

regular expression

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
pathcf
Asked:
pathcf
  • 5
  • 3
1 Solution
 
pinaldaveCommented:
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
 
pinaldaveCommented:
2) "#char(10)##char(13)#"
is correct but I am using "#ch(13)##ch(10)#"
try that also...
Regards,
---Pinal
0
 
pathcfAuthor Commented:
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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
pinaldaveCommented:
well, http://www.asciitable.com/ you can find more information.
0
 
pathcfAuthor Commented:
thank you. I think it works. Nice game with ascii.
0
 
pinaldaveCommented:
well glad to help you...
which game of ascii ?
Regards,
---Pinal
0
 
pathcfAuthor Commented:
if you go to that ascii page you send me there is  a game on right side about clicking button.
0
 
pinaldaveCommented:
=)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now