Hello,
Please help with regex code to extract the text before a keyword and include the keyword in the output.
Sample input string:
This is a test.ca ABC123
Fixed keyword: “.ca”
Expected output: test.ca
I tried this: \b.*(?<=).ca
But it’s extracting everything from the start of the line until the keyword.
Thanks