Answer the question
In order to leave comments, you need to log in
How to set the number of characters in a regular expression in sed?
This code works:
echo -e "123\n45\n678" | sed -r -e 's/([0-9]+)/замена/g'
echo -e "123\n45\n678" | sed -r -e 's/([0-9](2-3))/замена/g'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question