multiple-matches

How can I extract a varying number of groups of digits from a Perl string?

I am attempting to parse a string in Perl with the format: Messages pushed to the Order Book queues 123691 121574 146343 103046 161253 I want to access the numbers at the end of the string so intend to do a match like /(\d+)/s My issue is that the number of values at the end contain a variable number of strings. What is the best wa...

How to get multiple regex matches in Java?

How can I find all substrings that match a regex in Java? (Similar to Regex.Matches in .Net) ...

Returning partial address matches and mismatch position using L2S or SQL

I need to implement a method that takes an address split up into individual parts and returns any matching items from an address table. If no matches are found, I want to be able to return a value indicating where it failed. Each input param has a corresponding field in the table. The signature would look something like this: List<Add...

Better way to write this regex to match multi-ordered property list?

I've been whacking on this regex for a while, trying to build something that can pick out multiple ordered property values (DTSTART, DTEND, SUMMARY) from an .ics file. I have other options (like reading one line at a time and scanning), but wanted to build a single regex that can handle the whole thing. SAMPLE PERL # There has got to ...