troubleshooting Question

regex - value a or nothing

Avatar of static86
static86 asked on
Regular Expressions
5 Comments2 Solutions505 ViewsLast Modified:
Hi,
I know that {a, b, c} represents a or b or c.
How can I write regular expression for to accepts sentences "I passed" and "I had passed".
Is it just {a} or {a, ""} or something different?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros