satvrn
satvrn
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
That seems to make it work. I ended up using Address: ((?:(?!Address:).)*) \(Work\) to have $1 be just the full address. Thanks again!
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
No description
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
No description
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
No description
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
[^x] wouldn't work in my case.
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
That would work for this case, but I see I might've made the example too abstract. In my specific case I have the following string:
Address: 123 Test St (Home)
Address: 456 Test Ave (Work)
Address: 123 Test St (Home)
Address: 456 Test Ave (Work)
I effectively want to match Address: 456 Test Ave (Work). "x" is "Address:", "y" is "(Home)" and "z" is "(Work)"
19 replies
RReactiflux
Created by satvrn on 6/12/2024 in #help-js
✅ – satvvrn – 15-47 Jun 12
But that would match both x..y and x..z. I want a Regex that discards/does not match x..y nor x..y..x..z, only x..z
19 replies