In fact, it could match zero or more substrings of the input (with global modifier). A regex may match a portion of the input (i.e., substring) or the entire input.In this case, + matches one or more digits. The +, known as occurrence indicator (or repetition operator), indicates one or more occurrences ( 1+) of the previous sub-expression.In this example, matches any SINGLE character between 0 and 9 (i.e., a digit), where dash ( -) denotes the range. It matches any SINGLE character in the list.
0 Comments
Leave a Reply. |