Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class Mask{
  2. String data="+918033667777,,,2,,,4937015106932345,,,1,3,,,,467298364729038,,24789438292,,7979,,,,,,,1,,1";
  3. public static void main(String[] args){
  4. dialSequence = dialSequence.replaceAll("(?<=\D)\d{4}(?=\D)", "****").replaceAll("\d{12}(?=\d{4})", "************");
  5. System.out.println(dialSequence);
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement