codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  adding a single \ to text  mimir at 11:57 on Tuesday, January 08, 2008
 

i need to add a single "\" at a location of my chosing in the text below:

$text = "somebody is here";

how do i do that?

i've tried
$text =~ s/some/\\/gi;

but it always adds two instances of \ instead of one.


thanks in advance,


  Re: adding a single \ to text  mimir at 13:20 on Tuesday, January 08, 2008
 

im the poster and ive solved this now.
there is no error there.


adios










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: adding a single \ to text
•  Charset convertion of text whose charset is Unknown.
•  I NEED HELPS C++ IN PCSX2 EMULATOR
•  Re: saving an attachment from a mail into a folder
•  how to make a flexible div??
•  JavaScript Word Counter
•  updating perl modules via NFS?
•  Re: how can i compare given two directories recursively
•  supercoder


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008