The regex pattern would be:
String configSting="Rs|RS|rs|rupee"; String
regEx="(?:^|(?<=[^a-zA-Z]))("+configSting+")(?:(?=[^a-zA-Z] )|)";
Pattern stringPattern = Pattern.compile(regEx);
solved how to write regex expression in java [closed]
The regex pattern would be:
String configSting="Rs|RS|rs|rupee"; String
regEx="(?:^|(?<=[^a-zA-Z]))("+configSting+")(?:(?=[^a-zA-Z] )|)";
Pattern stringPattern = Pattern.compile(regEx);
solved how to write regex expression in java [closed]