- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
04-07-2022 09:34 AM
Hello all,
Does anybody know how to use a Regex that contains "?", obviously that doesn't work because that automatically triggers the helper?
For example, I'm trying to filter results for a certain CLI command using this:
| match (?s)(word1.*?)(?=word2|$)
You can see that it contains multiple question marks, I'm not sure what I can do to get those through (if at all possible) and Palo documentation doesn't help.
04-10-2022 05:26 PM
. | Match any single character. |
? | Match the preceding character or expression 0 or 1 time. You must include the general expression inside parentheses. Example: (abc)? |
I see that you are not putting the parenthesis around correctly perhaps.. word1.*? should be (word1.*)? According the to docs.
04-11-2022 07:45 AM
Thanks, I did indeed try the suggested parenthesis thing before from the documentation but that didn't help, the "?" was still getting omitted.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!