Introduction The vi editor (available on all Unix flavors) might not be as powerful as some GUI editors such as Sublime Text however there are situations where it is the only available option. Anyway, vi is indeed a powerful command based text editor specially if we master the supported commands. Let us now answer the
Problem Given an input string, provide Python code to remove all special characters except spaces. Solution This is a typical regular expressions question. Please find the answer below.. Code The idea is to match only letters, spaces and exclude everything else. Take a look… That is for today. Thanks for visiting. Questions ? Please use
Problem Write a regular expression in Perl to validate dates in the following format “mm/dd/yyyy”. The month and day fields can be one or two digits. Code Here is a sample Perl code to do that