2023 Day 2 Part A [Java] regex pattern not matching

This page summarizes the projects mentioned and recommended in the original post on /r/adventofcode

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • RegExr

    RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.

  • First time posting here, let me know if I need to edit post to conform to any rules. My issue is that I'm trying to match regex pattern to separate out the number of cubes drawn and its color but my Matcher object seems to not be returning any matches so it's throwing a no match found exception when I try to call digitMatcher.group(). I have tested my regex pattern on sites like regexr and it seems to pass there but it's not working for some reason here. I use the same type of regex on day one and it work there so I'm not sure where my regex pattern is failing here. I'm talking about specifically in my isGameValid() method where I create a matcher base on a pattern I made above. Through debugging I know that I separated the string color pairing correctly and that my Matcher object has the correct regex pattern, it's just not matching for some reason. Any help would be appreciated. Code below:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Purl: A Simple Tool for Text Processing

    3 projects | news.ycombinator.com | 12 Apr 2024
  • A compiled-away, type-safe, readable RegExp alternative

    1 project | news.ycombinator.com | 6 Apr 2024
  • Show HN: Pyroscope/Phlare drop-in compatible replacement with OLAP storage

    1 project | news.ycombinator.com | 20 Feb 2024
  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 3

    3 projects | dev.to | 8 Jan 2024
  • Hot Springs

    1 project | dev.to | 3 Jan 2024