Problem with more issues on JSOn format data

now i encountered another issue, i get some openig ( and the <= or the < signs with the text

Experts Please update the Regex so i can skip that also

RegardsPlease refer previous question
LVL 16
Gurpreet Singh RandhawaWeb DeveloperAsked:
Who is Participating?
 
Terry WoodsConnect With a Mentor IT GuruCommented:
I just copied that from the previous question. I believe the \\\1 refers to the text captured from within the () brackets in the pattern for use as the replacement, which is all of the captured text; it actually seems to make the statement completely useless as it just puts back what it matched!

One of the other suggestions used an empty string as the replacement, which means the text captured by the pattern would be removed from the string. That is more likely to be what you want I think!

ReReplace(myString, '([\'<=("/\\\b\f\n\r\t]|\\u[a-fA-F0-9]{4})', '', 'ALL')
0
 
Terry WoodsIT GuruCommented:
Update which regex? Please post a link to the question. Thanks
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
acceted answers regex by kauf
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Terry WoodsIT GuruCommented:
So this one is the one you're referring to, I think:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_27302251.html

So maybe you want:
ReReplace(myString, '([<=("/\\\b\f\n\r\t]|\\u[a-fA-F0-9]{4})', '\\\1', 'ALL')

I've added the 3 characters <=( to the pattern. If that's not what you want, you might need to provide a more detailed explanation?
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
well it do handle single quote character also
0
 
Terry WoodsIT GuruCommented:
Adding a single quote to the pattern:
ReReplace(myString, '([\'<=("/\\\b\f\n\r\t]|\\u[a-fA-F0-9]{4})', '\\\1', 'ALL')
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
what we are doing this '\\\1'
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Have not tested but i hope it will work!
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.

All Courses

From novice to tech pro — start learning today.