Which among the following is/are not a metacharacter? i) \a ii) \A iii) \b iv) \B a) Only ...
View Question
Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/?
i) fol
ii) fool
iii) fooool
iv) fooooool
Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/? i) fol ii) ...
View Question
What will be the output of the following PHP code?
<?php
$text = “this is\tsome text that\nwe might like to parse.”;
print_r(split(“[\n\t]”,$text));
?>
What will be the output of the following PHP code? <?php ...
View QuestionPOSIX stands for ____________
a) Portable Operating System Interface for Unix b) Portable Operating System Interface for Linux c) Portative Operating System ...
View QuestionPOSIX implementation was deprecated in which version of PHP?
a) PHP 4 b) PHP 5 c) PHP 5.2 d) PHP 5.3 Answer: d Explanation: PHP 5.3
View Question
What will be the output of the following PHP code?
<?php
$username = “jasoN”;
if (ereg(“([^a-z])”,$username))
echo “Username must be all lowercase!”;
else
echo “Username is all lowercase!”;
?>
What will be the output of the following PHP code? <?php ...
View QuestionHow many functions does PHP offer for searching strings using POSIX style regular expression?
a) 7 b) 8 c) 9 d) 10 Answer: a Explanation: ereg(), ereg_replace(), eregi(), eregi_replace(), split(), spliti(), ...
View Question[:alpha:] can also be specified as ________
[:alpha:] can also be specified as ________ a) [A-Za-z0-9] b) [A-za-z] c) [A-z] d) [a-z] ...
View QuestionWhich one of the following regular expression matches any string containing zero or one p?
a) p+ b) p* c) P? d) p# Answer: c Explanation: P?
View Question
PHP has long supported two regular expression implementations known as _______ and _______
i) Perl
ii) PEAR
iii) Pearl
iv) POSIX
PHP has long supported two regular expression implementations known as _______ and _______ i) Perl ii) PEAR iii) ...
View Question