Regular expression to capture the first 4 Numbers from a string [duplicate]
This question already has answers here: Regex ignore middle part of capture (4 answers) Closed 29 days ago. Was playing around with regex to learn it better and wondering if we can write regex to match something like the following use case below Example String: 1_234_3456_345 Expected result: I want to match just the first […]