Vân Anh Nguyen
Member
What is the in regular expression?
Answer
The + , known as occurrence indicator (or repetition operator), indicates one or more occurrences ( 1+ ) of the previous sub-expression. In this case, [0-9]+ matches one or more digits. A regex may match a portion of the input (i.e., substring) or the entire input.
Answer
The + , known as occurrence indicator (or repetition operator), indicates one or more occurrences ( 1+ ) of the previous sub-expression. In this case, [0-9]+ matches one or more digits. A regex may match a portion of the input (i.e., substring) or the entire input.