Wish: Automatically strip out spaces in API key

Status: Accepted

Created by leiger 25 Jun 2011 05:12

rating: +2+x

**STE **


wdavatar?user=govegan
GoVegan

25 Jun 2011 13:19. Edited 0 times. (Edit, Permalink)
This is really really easy with JavaScript… Would providing you with JavaScript code assist you in generating Java code?

    string.replace(/\s/,'');

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

25 Jun 2011 17:01. Edited 1 times. (Edit, Permalink)
I already know how to do this :) It's very similar to the JavaScript version:

String s = "a sd2fr2 24 g23 4g ";
s.replaceAll(" ", "");
System.out.println(s);

The result would be:

asd2fr224g234g

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "Wish: Automatically strip out spaces in API key"

CSS Theme, Images and Code on this website are © Shane Smith 2010-2012. All forum posts by users and documentation licensed under Creative Commons BY-NC-SA 3.0 License.