Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

split email on dot java

// Split email on a literal dot .split(".")
String[] splittedEmail = email.split(".");

// Example
String email = "ola.nordmann@online.no";
for (int i = 0; i < splittedEmail.length; i++) {
  System.out.println(splittedEmail[i]);
}
// Will print
ola
nordmann@online
no
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #email #dot #java
ADD COMMENT
Topic
Name
3+2 =