I want to extract a list of all tags which are wrapped in {{ }} from following string and work on them i.e check db if they exist or not and than replace them as markdown link . i didnt find any String.scan function which returns substrings as a list. if you know how to do it than please let me know.
Lorem ipsum {{dolor}} sit {{amet}}, consectetur adipisicing {{elit}},
Thanks in advance for your effort and time :)
i can replace them with
String.replace(string, ~r/\{\{.+?\}\}/, "new substring")
but this doesnt help me because i can't work on substrings i.e check the db.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/b33bf9d1-bff6-4d30-838e-2fd4db1ba64f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.