HD Quiz

How to specify “*” character in text-based answers for HD Quiz? The correct answer is “/* <anything can go here" and I want to specify the "/*", but asterisk is already used as a placeholder for anything

Published: June 20, 2023
Support status: closed

How to specify “” character in text-based answers for HD Quiz? The correct answer is “/ <anything can go here" and I want to specify the "/*", but asterisk is already used as a placeholder for anything

thread author: Rale S

Sorry it looks like some of the answer was sanitized

I want to use the asterisk (“*”) in the correct responses list for the text-based answers, but the asterisk is already used to specify “all answers.” Is there a way to escape the asterisk and use it?

because the correct answer needs to have “/*” in it

20 June 2023 — 23:37 thread author - Rale S

Hi Rale, * isn’t used to mean “all answers”, it’s used for stemming, so that, for example, dog* would accept dog, doggy, dogs etc as valid.

Your problem is that you want to use * literally as part of the answer. But as long as the * isn’t the last character, you should be OK.

For example, if you edit the question and set a correct answer as abc/*123 then because the * is not the last character, it won’t be stemmed and will be treated literally.

21 June 2023 — 14:29 support admin - Dylan

If you are enjoying HD Quiz please leave a review here on the official WordPress.org page. HD Quiz is developed by me, just some dude, and is supported and available for free. It may seem dumb, but truly nothing makes me happier than knowing that people are using and loving HD Quiz and my hard work.

This thread has either been marked as complete or has been automatically closed due to inactivity.