fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone {
  6. static void main(String[] args) {
  7. def description = "OU=TEHNISKAIS CENTRS,OU=ANOTHER1,DC=EXAMPLE,DC=COM";
  8. def name = description.tokenize("OU=")[0].split(",")[0];
  9. System.out.println(name);
  10. }
  11. }
Success #stdin #stdout 0.84s 2252800KB
stdin
Standard input is empty
stdout
TEHNISKAIS CENTRS