Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What does /[^(]* regular expression indicate ?

  2. A.

     Match one or more characters that are not open paranthesis

    B.

     Match zero or more characters that are open paranthesis

    C.

     Match zero or more characters that are not open paranthesis

    D.

     Match one or more characters that are open paranthesis

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    We should always be careful while using * and ? as repetition characters as they may match zero instances of whatever precedes them, they are allowed to match nothing.


Be The First To Comment