Article 4Z7MR bash: remove dashes (-) out of regexes...

bash: remove dashes (-) out of regexes...

by
masavini
from LinuxQuestions.org on (#4Z7MR)
hi,
can you please suggest a command to remove dashes (-) out of a list of regexes, excluding the ones that define characters ranges (i.e.: [a-z])?

i.e.:

original regex:
Code:13-45[a-z][3-4]-?buburr-ex
^ ^^ ^modified regex:
Code:1345[a-z][3-4]buburrexlatest?d=yIl2AUoC8zA latest?i=6eU6jj4Ic14:pqGZT2YWWEw:F7zBnMy latest?i=6eU6jj4Ic14:pqGZT2YWWEw:V_sGLiP latest?d=qj6IDK7rITs latest?i=6eU6jj4Ic14:pqGZT2YWWEw:gIN9vFw6eU6jj4Ic14
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments