I am trying to create a simple regular expression that will get rid of anything after three dots in a block of text. Not sure what symbol should I use since the first part will have more than alphabet and number
For example if I pass in
Anything can go before three dots $ N C >> … this should be elminated d& < >
I should get
Anything can go before three dots $ N C >>
I have the following
([NOT SURE What goes here])…([ANYTHING HERE])
replace with: $1
You don’t say what you’ve tried or what RE syntax you are using, so this might not be correct for you but the idea is:
Breaking down:
As I say, your syntax might not be exactly the same as this but the key is you probably need to escape the three dots to make them literal as most RE’s use dot as a special character.