Sed or Stream Editor provides a lot of useful and dynamic functions. One of the most popular use case for sed is search and replace text in standard input output and text files. In this...
var str = "This is an example about regex for poftut.com";
var re = new RegExp( "poftut", "g" );
var result = re.exec(str);
Sed is stream editor. Sed is used to transform text according to different needs. Sed has a scripting language set too. Sed scripts can be run against files as we see our examples below. Now...
Regular expression is popular topic in system administrators and developers. Regular expression is used to find structured text or string in single or multiple files. The best side of regular expression we can define whatever...
Linux provides tool named grep for filter text data or output according to given string or regular expression. This tool is popular amongst Linux system administrators. On the other side Windows operating systems generally lacks...