1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.test.function;
|
11
|
|
12
|
|
13
|
/**
|
14
|
* @author a.babadshanjan
|
15
|
* @created 30.10.2008
|
16
|
*/
|
17
|
public class TestRegExs {
|
18
|
|
19
|
private static int NBR_OF_UUIDS = 7;
|
20
|
|
21
|
public static void generateRandomUUID(int nbr) {
|
22
|
|
23
|
String x = "ESPÈCE·TYPE:";
|
24
|
x = "ESPÈCE TYPE:";
|
25
|
String re = "(?i)^Esp[\u00E8\u00C8]ce[·\\-\\s]type:$";
|
26
|
System.out.println(x.matches(re));
|
27
|
|
28
|
// "(?i)^Espèce[·\\-\\s]type\\:$"
|
29
|
}
|
30
|
|
31
|
/**
|
32
|
* @param args
|
33
|
*/
|
34
|
public static void main(String[] args) {
|
35
|
|
36
|
generateRandomUUID(NBR_OF_UUIDS);
|
37
|
}
|
38
|
|
39
|
}
|