Send feedback
Class RegexQueryPartReplacer (0.27.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public class RegexQueryPartReplacer implements QueryPartReplacer
Static Methods
replace(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replace ( Pattern pattern , String replacement )
Replace all occurrences of the given pattern with the given static replacement.
replace(Pattern pattern, Supplier<String> replacement)
public static RegexQueryPartReplacer replace ( Pattern pattern , Supplier<String> replacement )
Replace all occurrences of the given pattern with the value that is returned by the given
Supplier function.
replaceAllAndStop(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replaceAllAndStop ( Pattern pattern , String replacement )
Replace the entire with the given static value and then stop.
replaceAndStop(Pattern pattern, String replacement)
public static RegexQueryPartReplacer replaceAndStop ( Pattern pattern , String replacement )
Replace the first occurrence of the given pattern with the given static value and then stop.
replaceAndStop(Pattern pattern, Supplier<String> replacement)
public static RegexQueryPartReplacer replaceAndStop ( Pattern pattern , Supplier<String> replacement )
Replace the first occurrence of the given pattern with the value that is returned by the given
Supplier function and then stop.
Methods
replace(String sql)
public Tuple<String , QueryPartReplacer . ReplacementStatus > replace ( String sql )
Replace unsupported SQL parts in the given SQL string and return the new SQL string.
Parameter
Name
Description
sql
String
Send feedback
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-09 UTC."],[],[]]