lrj
2024-10-25 f6348318d0511d54babc870d5bd7dd9e4ea00313
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.example;
 
 
import org.hibernate.validator.constraints.br.TituloEleitoral;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import java.util.regex.Matcher;
import java.util.regex.Pattern;
 
@SpringBootTest
public class Regex {
 
 
    @Test
    public  void test(){
 
        String regex = ">|=|<";
 
        String  v = "count > = 100";
 
        String[] r = v.split(regex);
 
 
        System.out.println(r.length);
 
    }
}