Regex multiple occurrences in one line

后端 未结 1 375
醉梦人生
醉梦人生 2021-01-07 15:50

How would I go about finding multiple occurrences in one line using regex in Java?

My code (regex included):

public static List getTitl         


        
1条回答
  •  我在风中等你
    2021-01-07 16:43

    String pattern = "rel=\"bookmark\">(.*?)";
    
                                          ^^   
    

    Make them non greedy.

    0 讨论(0)
提交回复
热议问题