This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

sezaru
I have a resource that has the following fields with regexes: attribute :cnpj_basico, :string do public? true allow_nil?...
New
pm100
I am assuming this is a Windows thing. Regex seems to treat \r\n as 2 characters but String treats them as one trying to strip whitespac...
New
kerryb
Is there a known input length limitation with the Regex module (or I assume probably :re under the covers)? I just spent a while debuggi...
New

Last Three Year's Trending Top

ghalestrilo
Hi :person_raising_hand: so, the Regex module supports named captures. Here’s an example from the docs for named_captures/3, which extrac...
New
kip
I’m working on making sure all the ex_cldr_* and unicode_* libraries are ready for OTP 28. I know that one of the key changes is that OTP...
New
Terbium-135
Given this (TeX) string (with a newline at the end): \fill[cardbackground, rounded corners=2pt] (0,0) rectangle (\cardwidth,\cardheight)...
New

Trending Over Three Years Top

script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
makeitrein
Hey all, just started picking up Elixir last week and am writing a scraper as a learning project. Baby step #1 is extracting the number ...
New
grangerelixx
Hi everyone, this is my first time writing regular expression. I have a regular expression that helps in validating domain names. I think...
New
shahryarjb
Hello, I wanted to create custom guard like this , but I have an error: cannot invoke remote function Regex.match?/2 inside guard guar...
New
abtrapp
Hi! Can somebody please explain this: iex(9)> Regex.match?(~r/\p{Lu}/, "Ö") true iex(10)> Regex.match?(~r/\p{Lu}/, "ö") true iex(...
New
shahryarjb
Hello, I have a string which is my Url, the string is: 125-1jump-test-for12-test now I want to remove 125- from the string by this rege...
New
9mm
I’m trying to make a regex to remove emojis based on this thread: This causes an error: Regex.replace(~r/[\u{1F600}-\u{1F6FF}]/, "💰 M...
New
fireproofsocks
A \s inside a string represents a space, i.e. " ". In other words: iex> " " === "\s" true iex> "this is a string" === "this\sis\s...
New
mercurio
I have this function for parsing a string into a tuple. "-<number>" should return {:lat, -<number>}, "+<number>" should...
New
tcoopman
It looks like the m multiline modifier for regex is on by default? iex(17)> Regex.match?(~r/^foo$/, "foo\n") true iex(18)> Regex.m...
New
drakvuf
I’m scraping articles and different news sites have different DateTime formats. It is a mess. So I wrote a date parser module to handle ...
New
script
In the phoenix routes we have paths for update/delete like this: /api/path/:id Here :id is a wildcard match. How can I mim...
New
egor
Hi all, I need to port this from JavaScript to Elixir: /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC0...
New
mudasobwa
AFAIU, Elixir delegates regular expression evaluation to Erlang. Erlang claims to support Unicode general category matchers. “ is decla...
New
shijith.k
I have a DateTime with me, #DateTime<2019-11-10 13:27:00.0Z> and want to replace the time part of the DateTime struct with another...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement