Hi,
I started to clean company names in the datastet I am currently working on and I am trying to get rid of the legal suffixes at the end of the string.
For instance:
I used
However I get the error
.
If I run the regex code for instance on "https://regex101.com/" where you can test regex queries it correctly selects "Inc."
Can someone point out where I am wrong here?
Thanks,
Marcel
I started to clean company names in the datastet I am currently working on and I am trying to get rid of the legal suffixes at the end of the string.
For instance:
1ST Biotherapeutics, Inc.
replace name = regexr(name, "(?<=\,\s)(\w*.*)", "")
regexp: ?+* follows nothing
If I run the regex code for instance on "https://regex101.com/" where you can test regex queries it correctly selects "Inc."
Can someone point out where I am wrong here?
Thanks,
Marcel
Comment