Trouble with Regex
Posted: 18 Jan 2024 13:34
hi! i often wish there was an off-topic section here as the wealth of knowledge outside of XY from our community is tremendous. i have exhausted my searching and testing and have quite frankly given up.
i have spent the better half of the last 2 days trying to create/solve a regex pattern. i can get the individual "parts" working relatively easy; however, not combined. i also refuse to "ask" some AI site for help and honestly, the toxicity of other services and forums is too much.
i am trying to match a set of keywords only inside of double-quotes. i can match the keywords and i can match the quoted text, but just combined.
example keywords:
TEST SAMPLE DEPOSIT
example string:
this is a TEST for matching "keywords like TEST and SAMPLE inside of quotes" but not this TEST and DEPOSIT because they are outside
attempting to match:
this is a TEST for matching "keywords like TEST and SAMPLE inside" of quotes but not TEST and DEPOSIT because they are outside
would it be possible to create an technical-only off-topic section only available to logged-in members ?
i have spent the better half of the last 2 days trying to create/solve a regex pattern. i can get the individual "parts" working relatively easy; however, not combined. i also refuse to "ask" some AI site for help and honestly, the toxicity of other services and forums is too much.
i am trying to match a set of keywords only inside of double-quotes. i can match the keywords and i can match the quoted text, but just combined.
example keywords:
TEST SAMPLE DEPOSIT
example string:
this is a TEST for matching "keywords like TEST and SAMPLE inside of quotes" but not this TEST and DEPOSIT because they are outside
attempting to match:
this is a TEST for matching "keywords like TEST and SAMPLE inside" of quotes but not TEST and DEPOSIT because they are outside
would it be possible to create an technical-only off-topic section only available to logged-in members ?