KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to create a regex that can match multiple strings. For example, I want to find all the instances of "good" or "great". I found some examples, but what I came up with doesn't seem to work: \b(good|great)\w*\b Can anyone point me in the right direction? Edit: I should note that I don't want to just match whole words. For example, I may want to match "ood" or "reat" as well (parts of the words). Edit 2: Here is some sample text: "This is a really great story." I might want to match "this" or "really", or I might want to match "eall" or "reat".
Tags (comma-separated)
Save Edits
Cancel