With this command, the path is searched, and the files that comply with the regular_expression are returned. * that, based on the previous discussion, will match zero or more occurrences of any character except a newline, meaning that it will match any string! 3. Two tokens frequently used in conjunction are. Caret ( ^ ): it negates the content within square brackets (although it also specifies the beginning of lines when searching within a file): q r will match the strings qar and qsr but not the string qwr or qer.Square brackets ( ): any of the characters of the string within square brackets return a positive match: qr will match the strings qwr and qer but not the strings qr, qwer or qwewer.Backslash ( \ ): it escapes special characters, for example, to search for a period: q\.e will match the string q.e but not the strings qre, qee, qe or qwwe. Asterisk ( * ): it matches zero or more occurrences of the preceding character/regular expression: qw*e will match the strings qe, qwe, qwwe but not the string qre.): it matches any character once (except a newline character): q.e will match the strings qwe, qre, and qee but not the strings qe or qwwe As a quick introduction, there are regex tokens that match multiple characters:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |