문제

I have trouble remembering the quantifications, i.e i know what they all mean but does anyone have an easy way to recall which one stands for which ?

?   The question mark indicates there is zero or one of the preceding element.
*   The asterisk indicates there is zero or more of the preceding element.
+   The plus sign indicates there is one or more of the preceding element.

I'll give an example of the answer i'm looking for.

to distinguish between horizontal and vertical, take the first letter H the line in the middle of the letter 'H' is the direction that the word denotes. the letter 'V' has two lines which go up ,so thats the direction the word means.

도움이 되었습니까?

해결책

?    is_whatever? returs boolean (0 or 1)
*    0 * 1 = 0 (0 or more)
+    0 + 1 = 1 (1 or more)

다른 팁

The question mark is a bend line which stand for 1 and a dot (a circle) which stands for zero.

The asterisk is a larger dot thus zero or more.

The + has a vertical line (representing one) and another one (thus one or more).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top