in reply to Re^2: Extraction of letters from a string
in thread Extraction of numbers in an string

How was m,n,p etc. supposed to represent digits? Anyway, if you want to match digits, match digits:

#!/usr/bin/env perl use strictures; my @v = 'A1=<9,8>:<7,6>:<5,4>...go on' =~ /\d/ag;

Replies are listed 'Best First'.
Re^4: Extraction of digits from a string
by t-rex (Scribe) on Nov 24, 2016 at 15:50 UTC

    Hi, I have one doubt , what should be changed if double or triple digits are to be considered , as of now the above mentioned code (your solution) splits 10 as 1 0

Re^4: Extraction of digits from a string
by t-rex (Scribe) on Nov 24, 2016 at 13:30 UTC
    I edited my post, as i hastily put it, pls check the edited one, thank you that works :)