Jump to content

kkiranonly

Members
  • Posts

    2
  • Joined

  • Last visited

kkiranonly's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi,We can resolve it by just taking that string into a loop Use loop likefor(int i=0;i<str.length();i++){str = str.replace(\ \,"_");}
  2. Hi,This is KiranKumar and new to this forum.Recently i faced a problem like,I have a String like:var str = "Sony DCR30 PC CAMERA";in JavaScript.So,i want to replace all empty strings in str with "_";I used like :str.replace(\ \,"_");//But it's get affected only for the first space.I mean like this : Sony_DCR30And not for rest of all,and not even displaying the remaining string.So,i require your help in this regards.Is there any other function like(replaceAll() in java) to resolve this issue.Looking forward to recieve an Immediate Response.Thanks for spending your valuable time for me.......RegardsKiran Kumar.K
×
×
  • Create New...