regex example in java
问题 i want to get an input from user in string type and find the first 2 numbers and multiply them and replace the result in text the user should put the command word first , the command is : mul example : mul hello 2 car ?7color 9goodbye5 the result should be : 14color 9goodbye5 i wrote this code but its not working can you help me for solving the problem? import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Collusion { public static void main