Deleting between two expressions
Posted: Mon Jan 02, 2012 3:14 pm
- American Canyon #1651,
- Anaheim #2242,
- Anderson #5133,
- Antelope #1881,
- Bakersfield #1574,
- Bakersfield #5134,
- Baldwin Park #3522,
- Beaumont #5156,
- Brawley #5335,
I have the above text in a file. I want to search for anything that's between the hyphen '-' and the pound sign '#' and delete the text in between.
So it will look like.
- #1651,
- #2242,
- #5133,
- #1881,
- #1574,
- #5134,
- #3522,
- #5156,
- #5335,
- Anaheim #2242,
- Anderson #5133,
- Antelope #1881,
- Bakersfield #1574,
- Bakersfield #5134,
- Baldwin Park #3522,
- Beaumont #5156,
- Brawley #5335,
I have the above text in a file. I want to search for anything that's between the hyphen '-' and the pound sign '#' and delete the text in between.
So it will look like.
- #1651,
- #2242,
- #5133,
- #1881,
- #1574,
- #5134,
- #3522,
- #5156,
- #5335,