Regular Expression, commonly known as RegEx is considered to be one  of the most complex concepts. However, this is not really true. Unless  you have worked with regular expressions before, when you look at a  regular expression containing a sequence of special characters like /,  $, ^, \, ?, *, etc., in combination with alphanumeric characters, you  might think it a mess. RegEx is a kind of language and if you have  learnt its symbols and understood their meaning, you would find it as  the most useful tool in hand to solve many complex problems related to  text searches.     Just consider how you would make a search for files on your computer.  You   most likely use the ? and * characters to help find the files  you're looking   for. The ? character matches a single character in a  file name, while the *   matches zero or more characters. A pattern such  as 'file?.txt' would find the   following files:       file1.txt    filer.txt    files.txt    Using the * character inst...
 
Comments
Post a Comment