R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Escaping the backslash character in FORMAT command
Last Post 30 Mar 2009 02:29 PM by willgillen. 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
willgillenUser is Offline
New Member
New Member
Posts:33

--
30 Mar 2009 02:29 PM  
I am trying to figure out a way to escape the backslash character when using the REPLACE string manipulation command.

For instance, take the following in the Format>List Item Details:

[FORMAT,[USERNAME],{REPLACE:"DOMAIN\",""}]

Essentially, I'm trying to replace the string "DOMAIN\" with a blank character.
However, becuase there is a backslash "\" in the domain string, it causes problems, and doesn't render at all.

I'm tried all of the following as well with no luck:

[FORMAT,[USERNAME],{REPLACE:"DOMAIN\\",""}]
[FORMAT,[USERNAME],{REPLACE:"DOMAIN\\\",""}]
[FORMAT,[USERNAME],{REPLACE:"DOMAIN\\\\",""}]

Is there any way to escape the backslash character?


You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share