exam questions

Exam SPLK-1004 All Questions

View all questions & answers for the SPLK-1004 exam

Exam SPLK-1004 topic 1 question 17 discussion

Actual exam question from Splunk's SPLK-1004
Question #: 17
Topic #: 1
[All SPLK-1004 Questions]

Which is a regex best practice?

  • A. Use complex expressions rather than simple ones.
  • B. Avoid backtracking.
  • C. Use greedy operators (.*) instead of non-greedy operators (.*?).
  • D. Use * rather than +.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
emlch
7 months, 1 week ago
Selected Answer: B
Other answers are the opposite of best practice. No need to extra knowledge on regex.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...