LinuxQuestions.org
(
/questions/
)
-
Linux - Newbie
(
https://www.linuxquestions.org/questions/linux-newbie-8/
)
- -
Regular expression to extract "y" from "abc/x.y.z"
(
https://www.linuxquestions.org/questions/linux-newbie-8/regular-expression-to-extract-y-from-abc-x-y-z-645520/
)
rag84dec
05-29-2008 02:18 AM
Regular expression to extract "y" from "abc/x.y.z"
Regular expression to extract "y" from "abc/x.y.z"
dorian33
05-29-2008 02:47 AM
echo "abc/x.y.z" | sed -re 's/[^\.]*\.([^\.])*\..*/\1/'
All times are GMT -5. The time now is
07:18 PM
.