matches to all ASCII letters ranging amongst a to z, but just the lower case letters matches to all ASCII letters ranging amongst A to Z, but just the upper case letters matches to any character but not any positive integers ranging from 0 to 9. The open and closed square brackets always match with a range of characters (alphabets, numbers) Example: lain matches “splain”, “plain” + matches to any of the positive integers available in the string where the regular expression will be applied. Example: (Week)* matches to any of the following – “Week1”, “Week2” or “Week3” The open and closed parenthesis always match a group of characters. Example: Splunk* matches with “Splunk”, “Splunkster” or “Splunks”. This character matches with any possible character, as it is always used as a wildcard character. Example: Splunk? matches with the string “Splunk?” This character is used to escape any special character that may be used in the regular expression. Example: Splunk+ matches with “Splunk” or “Splunkkk” but not with “Splun” This character when used along with any character, matches with 1 or more occurrences of the previous character used in the regular expression. This character when used matches 0 or 1 occurrence of the previous character specified in the regular expression. Example: Splunk* matches both to these options “Splunk”, “Splunkkkk” or “Splun” This character tries to match 0, 1 or more occurrences of the previous character specified on this regular expression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |