online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { String string = "1. J.C.A.577/2019/4/I Y ACUM.600/2019/4/V\n" + "2. CUAD.DE AMP.09/2021 J.C.A.671/2016/4/E\n" + "3. 70/2022/4a-III\n" + "4. 193/2020/4/E\n" + "5. 392/2020/3a-III\n" + "6. 647/2016/3a-I y Acumulado 648/2016\n" + "7. PRA/PRA/13/2020/3a-I\n" + "8. CUADERNO DE ANTECEDENTES 119/2021 RELATIVO AL JUICIO CONTENCIOSO 303/2021/2a-II"; Pattern pattern = Pattern.compile("\\d+(\\/[\\w-]+)+"); Scanner scanner = new Scanner(string); int count = 1; while (scanner.hasNextLine()) { String line = scanner.nextLine(); Matcher matcher = pattern.matcher(line); System.out.print(count + ". "); while (matcher.find()) { System.out.print(matcher.group() + " "); } System.out.println (); count++; } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue