# Pattern matching against a string

**URL:** <https://forum.elixirforum.com/t/pattern-matching-against-a-string/21002>\
**Category:** Questions\
**Tags:** pattern-matching\
**Created:** [March 20, 2019, 3:06pm UTC](https://forum.elixirforum.com/t/pattern-matching-against-a-string/21002 "2019-03-20T15:06:45Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sergio\_101](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@sergio\_101](https://forum.elixirforum.com/u/sergio_101)\
**Post date:** [March 20, 2019, 3:58pm UTC](https://forum.elixirforum.com/t/pattern-matching-against-a-string/21002/9 "2019-03-20T15:58:57Z")

</div>

okay.. so, my next question. is there something more “functional” about doing it this way, rather than a straight pattern match? i have spent the past 30 years in the OOP world. I used Lisp maybe 30 years ago, but didn’t know enough to really make the distinction back then.

I know I initially asked about doing it with a pattern match, just because i saw that in a course, and EVERY TIME i need to do regex, i need to look at the docs..

Thanks!

---

_[View the full topic](https://forum.elixirforum.com/t/pattern-matching-against-a-string/21002)._
