Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 186

How to delete a pattern from String?

$
0
0

Having a string like :

"{Aaaa -> a, Bbbb- > b, Cccc -> , Ddddd -> c, Eeeee -> , Fffff -> e}"

I want to delete the parts that contain "a word"+"-> ," and replace them just with "," to have result like

"{Aaaa -> a, Bbbb- > b, Ddddd -> c, Fffff -> e}"

So that I can bring this ToExpression[]

Thanks.


Viewing all articles
Browse latest Browse all 186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>