Regex.scan/3
On Sat, Jul 9, 2016 at 8:19 PM Syed Murtza <[email protected]> wrote:
> 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.
>
> On Sunday, 10 July 2016 06:14:57 UTC+5, Syed Murtza wrote:
>>
>> 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.
>>
>> *string*
>>
>> Lorem ipsum {{dolor}} sit {{amet}}, consectetur adipisicing {{elit}},
>>
>>
>> Thanks in advance for your effort and time :)
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/b33bf9d1-bff6-4d30-838e-2fd4db1ba64f%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/b33bf9d1-bff6-4d30-838e-2fd4db1ba64f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-talk/CAOtk34eDN8B0fmm5iU%3DtZF_%3Dky9d1wQ_ZxogbJPm%2BmEzftVFFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.