RegexSplit resolver returning no values

Tom Scavo trscavo at gmail.com
Fri Jan 29 12:15:58 EST 2016


On Fri, Jan 29, 2016 at 12:04 PM, Bellina, Brendan <bbellina at ucla.edu> wrote:
> That regex grabs all digits at the start of a string until there is a
> non-digit character or end of string.  It is not limited to length 5. If
> the string only contains digits then the last digit will be dropped.
>
> So while your example “12345 some text 12/01/17” does return “12345” as
> you wished you should be aware that:
>
> "12 345 some text 12/01/17” would return only “12” - fewer than 5 digits.
> “123456789 some text 12/01/17” would return “123456789” - more than 5
> digits.
> “12345” would return “1234” - fewer than 5 digits.

The first two statements are true, the third is not. In that case
there would be no match since the digits MUST be followed by a space
character.

Tom


More information about the users mailing list