# \#pattern-matching

**URL:** https://discourse.julialang.org/tag/pattern-matching/346.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] Moshi v0.3 - the next-gen MLStyle, GADT, extensible pattern matching and more](https://discourse.julialang.org/t/ann-moshi-v0-3-the-next-gen-mlstyle-gadt-extensible-pattern-matching-and-more/117613)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 3\
**Last updated:** [August 5, 2024, 3:36pm UTC](https://discourse.julialang.org/t/ann-moshi-v0-3-the-next-gen-mlstyle-gadt-extensible-pattern-matching-and-more/117613 "2024-08-05T15:36:15Z")

</div>

This work has been iterating for about three years across multiple packages, from design to implementation. Now, it’s converging, so I’m very excited to announce a pre-alpha version for people to try out first. Please r…

---

## [Matching for interpolation](https://discourse.julialang.org/t/matching-for-interpolation/103636)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 2:49pm UTC](https://discourse.julialang.org/t/matching-for-interpolation/103636 "2023-09-08T14:49:24Z")

</div>

Is there a matching package that can do something like V = \[1.1, 2, 4.8, 6, 9, 11\] x = 5.1 @match begin V\[i\] ≤ x \< V\[i+1\] =\> #some interp function of V\[i\] and V\[i+i\]

---

## [Feature request: How about pattern matching of \`Base.Filesystem.readdir\`?](https://discourse.julialang.org/t/feature-request-how-about-pattern-matching-of-base-filesystem-readdir/91887)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 7\
**Last updated:** [December 20, 2022, 2:55pm UTC](https://discourse.julialang.org/t/feature-request-how-about-pattern-matching-of-base-filesystem-readdir/91887 "2022-12-20T14:55:44Z")

</div>

It’s Base.Filesystem.readdir in julia: https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.readdir It’s readdir in R, it has exclude argument as regular expression: readdir(dir::AbstractString=pwd(); join…

---

## [Finding patterns in vectors](https://discourse.julialang.org/t/finding-patterns-in-vectors/82833)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 9\
**Last updated:** [June 20, 2022, 8:06pm UTC](https://discourse.julialang.org/t/finding-patterns-in-vectors/82833 "2022-06-20T20:06:39Z")

</div>

Hello, I’m trying to write a Julia implementation of Lempel-Ziv Complexity. Specifically I’m stuck at the pattern-finding part of the algorithm. Let’s say I have a vector: \[1, 0, 0, 1\]. It contains the pattern \[1, 0\] bu…

---

## [Packages for text matching?](https://discourse.julialang.org/t/packages-for-text-matching/60012)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 15\
**Last updated:** [April 26, 2021, 8:49am UTC](https://discourse.julialang.org/t/packages-for-text-matching/60012 "2021-04-26T08:49:14Z")

</div>

I’d like to write: "$(First\_Name).$(Last\_Name),$(Age)" = "John.Smith,20" with result (First\_Name = "John", Last\_Name = "Smith", Age = 20 ) Any package that supports this pattern matching in text?

---

## [4 major problems of pattern matching in Julia](https://discourse.julialang.org/t/4-major-problems-of-pattern-matching-in-julia/34392)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 19\
**Last updated:** [February 10, 2020, 10:27pm UTC](https://discourse.julialang.org/t/4-major-problems-of-pattern-matching-in-julia/34392 "2020-02-10T22:27:38Z")

</div>

Despite of the notation issues of existing Julia macro libraries for pattern matching, based on my experience as a concerned user and developer, I hereby propose 4 major problems preventing us from bringing out good eno…
