Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi, I want to delete all and ending +- symbols and whitespaces, how to do this?

+Daviddance -disco

+Alfredo Paixao +++++

-Serge Gamesbourg - The Cool, The Hip & The Square
Dennis Taylor                         


to

Daviddance -disco

Alfredo Paixao +++++

Serge Gamesbourg - The Cool, The Hip & The Square
Dennis Taylor


What I have tried:

I haven't skills nor knowledge about regex.
Posted
Updated 29-Oct-22 6:31am
v2

1 solution

See the answer(s) to your previous question on this subject. And as suggested by OriginalGriff, you should get a copy of Expresso Regular Expression Tool[^] which will allow you to create REs quickly and easily.
 
Share this answer
 
Comments
montaigne gremo 28-Oct-22 8:41am    
Expresso Regular Expression Tool is too complicated for me.
Richard MacCutchan 28-Oct-22 8:55am    
It's the best and easiest available. If you find that complicated then your life as a developer will be doubly hard.
OriginalGriff 28-Oct-22 8:58am    
If the tool is too complex, then you should rethink your strategy of using a Regex at all - they are famous for arcane syntax and not simple to "decode" at all.

Doing it in code is pretty simple in most languages, if long winded to write and read. A heck of a lot simpler to modify however!
montaigne gremo 28-Oct-22 12:41pm    
I need regex rarely. Once in a year maybe. So could you help me about the question above.
OriginalGriff 28-Oct-22 14:00pm    
And suppose I do? I give you a complex Regex and you toddle off to use it. And then next week you find it needs another bit added. What are you going to do then? Bring it back and hope somebody else can understand it and modify it?

Change happens. Plan for it and learn regexes. You may find they are more useful than your thought ... or don't use the regex and code it directly. Then you can modify it yourself!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900