Open source has a funding problem. Hi, I am new to Unix. Is there any way to extract part of string/sentence, given only the from and to index of starting and ending position of the substring? sed, grep, awk, regex -- extracting a matched substring from a file/string (I'm not even sure, I might have asked something similar before. Ask Question Asked 3 years, 4 ... of the regex dialects grep supports on Ubuntu, PCRE is the one that supports laziness. Example 3: Selecting all that is not; 5. Can 1 kilogram of radioactive material with half life of 5 years just decay in the next minute? I need to extract a path from a string that will contain only a valid path, but may also have other non-filespec characters - just not in the path string. Related. 10.1. Example 2: Heavy duty string modification; 4. !Well, A regular expression or regex, in general, is a Need to extract a substring from a file path string including the delimiter. content