eriezelagera

Code for Lovely ;)

Jul 30th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. /*   Remove all numbers and symbols
  2.  *     \\d = removes digit
  3.  *     \\W = removes non-word characters
  4.  */
  5. getitem = getitem.toString().replaceAll("\\d", "").replaceAll("\\W", "");
  6.  
  7. /*
  8.  *   Remove all non-digit character
  9.  *     \\D = removes non-digit character
  10.  */
  11. getcost = getcost.toString().replaceAll("\\D", "");
  12.  
  13. /*
  14.  *   Remove all non-digit character
  15.  *     \\D = removes non-digit character
  16.  */
  17. getstock = getstock.toString().replaceAll("\\D", "");
Advertisement
Add Comment
Please, Sign In to add comment