This Week's Trending
This Month's Trending
This Year's Trending
I have a resource that has the following fields with regexes:
attribute :cnpj_basico, :string do
public? true
allow_nil?...
New
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
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
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
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
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
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
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
Hi everyone, this is my first time writing regular expression. I have a regular expression that helps in validating domain names. I think...
New
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
Hi!
Can somebody please explain this:
iex(9)> Regex.match?(~r/\p{Lu}/, "Ö")
true
iex(10)> Regex.match?(~r/\p{Lu}/, "ö")
true
iex(...
New
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
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
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
I have this function for parsing a string into a tuple. "-<number>" should return {:lat, -<number>}, "+<number>" should...
New
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
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
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
Hi all, I need to port this from JavaScript to Elixir:
/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?






