darrenhillconsulting
05/03/2023, 6:01 PMdarrenhillconsulting
05/03/2023, 6:01 PM0190 1st Ave - Napa - Sonoma, CA - The Palm
, I want to pull The Palm
darrenhillconsulting
05/03/2023, 6:02 PMdarrenhillconsulting
05/03/2023, 6:02 PM([^\s-\s]*)$
This captures Palm
darrenhillconsulting
05/03/2023, 6:04 PM([^-]*)$
This captures The Palm
(but includes a leading spaceNathan L
05/03/2023, 6:04 PMNathan L
05/03/2023, 6:04 PMdarrenhillconsulting
05/03/2023, 6:05 PMNathan L
05/03/2023, 6:06 PMdarrenhillconsulting
05/03/2023, 6:07 PMNathan L
05/03/2023, 6:09 PM(?<!-)- (?<= )([^-\n]+)$
darrenhillconsulting
05/03/2023, 6:10 PMAnthony OConnor
05/03/2023, 7:31 PMRichard Tanner
05/03/2023, 7:49 PM(?!.*-)[^\s].*$
Michael Pope
05/03/2023, 8:06 PM'0190 1st Ave - Napa - Sonoma, CA - The Palm'.replace(/ \- /g,'');
. If you are doing it using a FORMULA column, you should be able to use the REGEX_REPLACE function with something similar to this (Oracle SQL regex is formatted slightly differently though). Using .match() in Javascript is going to involves some painful things including back references, forward references, and named groups (so I wouldn't recommend it)battk
05/03/2023, 8:20 PMdarrenhillconsulting
05/04/2023, 1:23 PM(?<= - )[^-]+$
... so the search formulatext looks like REGEXP_SUBSTR({companyname}, '(?<= - )[^-]+$', 1, 1, NULL, 1)