Skip to main content
Shortened title, deleted useless text, added text from comment and improved formatting.
Source Link

Removing the dash from both ends of a pattern using Regex -L-07-TV-04-Clip-01-

-L-07-TV-04-Clip-01-
-I-have-to-realize-
-me-having-this-addiction-
-causes-me-to-think-
-about-myself-in-ways-
-I-have-not-before-
-END-OF-CLIP-
-L-07-TV-04-Clip-02-
-I-have-to-realize-
-when-I-felt-anger-
-at-the-people-
-that-shamed-me-
-for-having-this-addiction-
-The-anger-was-a-form-
-of-unconscious-communication-
-informing-me-
-I-was-experiencing-
-the-absence-of-love-
-expressed-by-them-
-END-OF-CLIP-
-L-07-TV-04-Clip-03-
-I-have-to-realize-
-when-I-have-shamed-others-
-for-having-an-addiction-
-I-was-blind-to-see-
-they-were-suffering-
-from-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-04-
-I-have-to-realize-
-when-I-have-shamed-myself-
-for-having-this-addiction-
-I-was-blind-to-see-
-I-was-suffering-
-from-the-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-05-
-I-have-to-realize-
-I-need-to-accept-
-that-by-me-focusing-
-on-the-addiction-
-will-not-help-me-
-understand-this-
-because-it-a-symptom-
-and-not-the-cause-
-of-the-addition-
-END-OF-CLIP- I want to remove the dash from both ends of a pattern -L-07-TV-04-Clip-01- using Regex.

-L-07-TV-04-Clip-01-  
-I-have-to-realize-  
-me-having-this-addiction-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-02-  
-I-have-to-realize-  
-when-I-felt-anger-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-03-  
-I-have-to-realize-  
-when-I-have-shamed-others-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-04-  
-I-have-to-realize-  
-when-I-have-shamed-myself-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-05-  
-I-have-to-realize-  
-I-need-to-accept-  
-END-OF-CLIP-  

The expected formatting is:

  • Before Regex -L-07-TV-04-Clip-01-
  • After Regex L-07-TV-04-Clip-01

Removing the dash from both ends of a pattern using Regex -L-07-TV-04-Clip-01-

-L-07-TV-04-Clip-01-
-I-have-to-realize-
-me-having-this-addiction-
-causes-me-to-think-
-about-myself-in-ways-
-I-have-not-before-
-END-OF-CLIP-
-L-07-TV-04-Clip-02-
-I-have-to-realize-
-when-I-felt-anger-
-at-the-people-
-that-shamed-me-
-for-having-this-addiction-
-The-anger-was-a-form-
-of-unconscious-communication-
-informing-me-
-I-was-experiencing-
-the-absence-of-love-
-expressed-by-them-
-END-OF-CLIP-
-L-07-TV-04-Clip-03-
-I-have-to-realize-
-when-I-have-shamed-others-
-for-having-an-addiction-
-I-was-blind-to-see-
-they-were-suffering-
-from-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-04-
-I-have-to-realize-
-when-I-have-shamed-myself-
-for-having-this-addiction-
-I-was-blind-to-see-
-I-was-suffering-
-from-the-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-05-
-I-have-to-realize-
-I-need-to-accept-
-that-by-me-focusing-
-on-the-addiction-
-will-not-help-me-
-understand-this-
-because-it-a-symptom-
-and-not-the-cause-
-of-the-addition-
-END-OF-CLIP-

Removing the dash from both ends of a pattern using Regex

I want to remove the dash from both ends of a pattern -L-07-TV-04-Clip-01- using Regex.

-L-07-TV-04-Clip-01-  
-I-have-to-realize-  
-me-having-this-addiction-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-02-  
-I-have-to-realize-  
-when-I-felt-anger-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-03-  
-I-have-to-realize-  
-when-I-have-shamed-others-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-04-  
-I-have-to-realize-  
-when-I-have-shamed-myself-  
-END-OF-CLIP-  
-L-07-TV-04-Clip-05-  
-I-have-to-realize-  
-I-need-to-accept-  
-END-OF-CLIP-  

The expected formatting is:

  • Before Regex -L-07-TV-04-Clip-01-
  • After Regex L-07-TV-04-Clip-01
added 2 characters in body
Source Link

-L-07-TV-04-Clip-01-
-I-have-to-realize-
-me-having-this-addiction-
-causes-me-to-think-
-about-myself-in-ways-
-I-have-not-before-
-END-OF-CLIP-
-L-07-TV-04-Clip-02-
-I-have-to-realize-
-when-I-felt-anger-
-at-the-people-
-that-shamed-me-
-for-having-this-addiction-
-The-anger-was-a-form-
-of-unconscious-communication-
-informing-me-
-I-was-experiencing-
-the-absence-of-love-
-expressed-by-them-
-END-OF-CLIP-
-L-07-TV-04-Clip-03-
-I-have-to-realize-
-when-I-have-shamed-others-
-for-having-an-addiction-
-I-was-blind-to-see-
-they-were-suffering-
-from-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-04-
-I-have-to-realize-
-when-I-have-shamed-myself-
-for-having-this-addiction-
-I-was-blind-to-see-
-I-was-suffering-
-from-the-absence-of-love-
-END-OF-CLIP- 
-L-07-TV-04-Clip-05-
-I-have-to-realize-
-I-need-to-accept-
-that-by-me-focusing-
-on-the-addiction-
-will-not-help-me-
-understand-this-
-because-it-a-symptom-
-and-not-the-cause-
-of-the-addition-
-END-OF-CLIP-

-L-07-TV-04-Clip-01-
-I-have-to-realize-
-me-having-this-addiction-
-causes-me-to-think-
-about-myself-in-ways-
-I-have-not-before-
-END-OF-CLIP-
-L-07-TV-04-Clip-02-
-I-have-to-realize-
-when-I-felt-anger-
-at-the-people-
-that-shamed-me-
-for-having-this-addiction-
-The-anger-was-a-form-
-of-unconscious-communication-
-informing-me-
-I-was-experiencing-
-the-absence-of-love-
-expressed-by-them-
-END-OF-CLIP-
-L-07-TV-04-Clip-03-
-I-have-to-realize-
-when-I-have-shamed-others-
-for-having-an-addiction-
-I-was-blind-to-see-
-they-were-suffering-
-from-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-04-
-I-have-to-realize-
-when-I-have-shamed-myself-
-for-having-this-addiction-
-I-was-blind-to-see-
-I-was-suffering-
-from-the-absence-of-love-
-END-OF-CLIP- -L-07-TV-04-Clip-05-
-I-have-to-realize-
-I-need-to-accept-
-that-by-me-focusing-
-on-the-addiction-
-will-not-help-me-
-understand-this-
-because-it-a-symptom-
-and-not-the-cause-
-of-the-addition-
-END-OF-CLIP-

-L-07-TV-04-Clip-01-
-I-have-to-realize-
-me-having-this-addiction-
-causes-me-to-think-
-about-myself-in-ways-
-I-have-not-before-
-END-OF-CLIP-
-L-07-TV-04-Clip-02-
-I-have-to-realize-
-when-I-felt-anger-
-at-the-people-
-that-shamed-me-
-for-having-this-addiction-
-The-anger-was-a-form-
-of-unconscious-communication-
-informing-me-
-I-was-experiencing-
-the-absence-of-love-
-expressed-by-them-
-END-OF-CLIP-
-L-07-TV-04-Clip-03-
-I-have-to-realize-
-when-I-have-shamed-others-
-for-having-an-addiction-
-I-was-blind-to-see-
-they-were-suffering-
-from-absence-of-love-
-END-OF-CLIP-
-L-07-TV-04-Clip-04-
-I-have-to-realize-
-when-I-have-shamed-myself-
-for-having-this-addiction-
-I-was-blind-to-see-
-I-was-suffering-
-from-the-absence-of-love-
-END-OF-CLIP- 
-L-07-TV-04-Clip-05-
-I-have-to-realize-
-I-need-to-accept-
-that-by-me-focusing-
-on-the-addiction-
-will-not-help-me-
-understand-this-
-because-it-a-symptom-
-and-not-the-cause-
-of-the-addition-
-END-OF-CLIP-

added 92 characters in body
Source Link

-L-07-TV-04-Clip-01- 
-I-have-to-realize- 
-me-having-this-addiction- 
-causes-me-to-think- 
-about-myself-in-ways- 
-I-have-not-before- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-02- 
-I-have-to-realize- 
-when-I-felt-anger- 
-at-the-people- 
-that-shamed-me- 
-for-having-this-addiction- 
-The-anger-was-a-form- 
-of-unconscious-communication- 
-informing-me- 
-I-was-experiencing- 
-the-absence-of-love- 
-expressed-by-them- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-03- 
-I-have-to-realize- 
-when-I-have-shamed-others- 
-for-having-an-addiction- 
-I-was-blind-to-see- 
-they-were-suffering- 
-from-absence-of-love- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-04- 
-I-have-to-realize- 
-when-I-have-shamed-myself- 
-for-having-this-addiction- 
-I-was-blind-to-see- 
-I-was-suffering- 
-from-the-absence-of-love- 
-END-OF-CLIP- -L-07-TV-04-Clip-05- 
-I-have-to-realize- 
-I-need-to-accept- 
-that-by-me-focusing- 
-on-the-addiction- 
-will-not-help-me- 
-understand-this- 
-because-it-a-symptom- 
-and-not-the-cause- 
-of-the-addition- 
-END-OF-CLIP-

-L-07-TV-04-Clip-01- -I-have-to-realize- -me-having-this-addiction- -causes-me-to-think- -about-myself-in-ways- -I-have-not-before- -END-OF-CLIP- -L-07-TV-04-Clip-02- -I-have-to-realize- -when-I-felt-anger- -at-the-people- -that-shamed-me- -for-having-this-addiction- -The-anger-was-a-form- -of-unconscious-communication- -informing-me- -I-was-experiencing- -the-absence-of-love- -expressed-by-them- -END-OF-CLIP- -L-07-TV-04-Clip-03- -I-have-to-realize- -when-I-have-shamed-others- -for-having-an-addiction- -I-was-blind-to-see- -they-were-suffering- -from-absence-of-love- -END-OF-CLIP- -L-07-TV-04-Clip-04- -I-have-to-realize- -when-I-have-shamed-myself- -for-having-this-addiction- -I-was-blind-to-see- -I-was-suffering- -from-the-absence-of-love- -END-OF-CLIP- -L-07-TV-04-Clip-05- -I-have-to-realize- -I-need-to-accept- -that-by-me-focusing- -on-the-addiction- -will-not-help-me- -understand-this- -because-it-a-symptom- -and-not-the-cause- -of-the-addition- -END-OF-CLIP-

-L-07-TV-04-Clip-01- 
-I-have-to-realize- 
-me-having-this-addiction- 
-causes-me-to-think- 
-about-myself-in-ways- 
-I-have-not-before- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-02- 
-I-have-to-realize- 
-when-I-felt-anger- 
-at-the-people- 
-that-shamed-me- 
-for-having-this-addiction- 
-The-anger-was-a-form- 
-of-unconscious-communication- 
-informing-me- 
-I-was-experiencing- 
-the-absence-of-love- 
-expressed-by-them- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-03- 
-I-have-to-realize- 
-when-I-have-shamed-others- 
-for-having-an-addiction- 
-I-was-blind-to-see- 
-they-were-suffering- 
-from-absence-of-love- 
-END-OF-CLIP- 
-L-07-TV-04-Clip-04- 
-I-have-to-realize- 
-when-I-have-shamed-myself- 
-for-having-this-addiction- 
-I-was-blind-to-see- 
-I-was-suffering- 
-from-the-absence-of-love- 
-END-OF-CLIP- -L-07-TV-04-Clip-05- 
-I-have-to-realize- 
-I-need-to-accept- 
-that-by-me-focusing- 
-on-the-addiction- 
-will-not-help-me- 
-understand-this- 
-because-it-a-symptom- 
-and-not-the-cause- 
-of-the-addition- 
-END-OF-CLIP-

Source Link
Loading