I am seeking someone who is a Regex Expert.
You should pass the test step. It is to convert the following string to Regex.
for example: 23 34 45 56 65 80
As described above, the string has to be only number and space.
NNSNNSNNSNNSNNSNN
N = number
S = space
Hi there,
it's a bit tricky to implement using a single regex, but it can done like that:
echo '23 34 45 56 65 80' | perl -pe 's/(\d|( ))/$2?'S':'N'/eg'
I'll be very happy to do this for you, but I need to know the exact requirements first