Java Snippet / Regex issue: No match on first row

Hi, so I’ve got a strange issue.
I’ve created a regex pattern/matcher to look for pattern. eg. “1.1. Title” and find “1.1.” as first group, and “Title” as second group.

I run the java snippet, and it processess everything fine, except for the first row? The row is not filtered out, as it is passed through to the table in the java snippet, but for some reason the first row is never a match.

If I add another row before this row, it is a match, but not when it’s the first row. Any idea why?

More information:
Regex used:
^(\d+[.| ]+\d+[.| ])\W?(\D.*)$

Data input (Title column):
Row0:
Row1: 1.1. Konserndirektør HR og organisasjon
Row2:

results in line two being picked up as a match, and processed as intended.

However;
Data input (Title column):
Row0: 1.1. Konserndirektør HR og organisasjon
Row1:

is not being picked up as a match, and is therefor not processed further.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.