Package editor.search

Class RegExStringUtil


  • public class RegExStringUtil
    extends Object
    • Constructor Detail

      • RegExStringUtil

        public RegExStringUtil()
    • Method Detail

      • searchIgnoreCase

        public static List<SearchLocation> searchIgnoreCase​(String strSource,
                                                            String strPattern)
        Return a list of SearchLocations representing the occurrences of the specified pattern in the specified source string.
        Parameters:
        strSource - A string to search.
        strPattern - A pattern to search for.
        Returns:
        A list of SearchLocations for each occurrence of the specified pattern. Returns an empty list for zero occurrences.
      • search

        public static List<SearchLocation> search​(String strSource,
                                                  String strPattern,
                                                  boolean bIgnoreCase,
                                                  int iOffset,
                                                  boolean backwards)