A summary of data about the Ruby ecosystem.

https://github.com/ticky/ruby-emoji-regex

💎 A set of Ruby regular expressions for matching Unicode Emoji symbols.
https://github.com/ticky/ruby-emoji-regex

Keywords

emoji regex regexp regular-expression unicode

Last synced: about 7 hours ago
JSON representation

Repository metadata

💎 A set of Ruby regular expressions for matching Unicode Emoji symbols.

README.md

Ruby Emoji Regex 💎

Gem Version Node & Ruby CI

A Ruby regular expression for matching Unicode Emoji symbols.

Background

This is based upon the fantastic work from Mathias Bynens' emoji-test-regex-pattern package. emoji-test-regex-pattern is cleverly assembled based upon data from the Unicode Consortium.

The regular expressions provided herein are derived from that package.

Installation

gem install emoji_regex

Usage

emoji_regex provides the EmojiRegex::Regex regular expression, which matches emoji, as defined by the Unicode standard's emoji-test data file.

Example

require 'emoji_regex'

text = <<TEXT
\u{231A}: ⌚ default Emoji presentation character (Emoji_Presentation)
\u{2194}\u{FE0F}: ↔️ default text presentation character with Emoji variation selector
\u{1F469}: 👩 Emoji modifier base (Emoji_Modifier_Base)
\u{1F469}\u{1F3FF}: 👩🏿 Emoji modifier base followed by a modifier
TEXT

text.scan EmojiRegex::Regex do |emoji|
  puts "Matched sequence #{emoji} — code points: #{emoji.length}"
end

Console output:

Matched sequence ⌚ — code points: 1
Matched sequence ⌚ — code points: 1
Matched sequence ↔️ — code points: 2
Matched sequence ↔️ — code points: 2
Matched sequence 👩 — code points: 1
Matched sequence 👩 — code points: 1
Matched sequence 👩🏿 — code points: 2
Matched sequence 👩🏿 — code points: 2

Note: The above code and output are verified as part of the spec suite.

Development

Requirements

Initial setup

To install all the Ruby and Javascript dependencies, you can run:

bin/setup

To update the Ruby source files based on the emoji-regex library:

bundle exec rake regenerate

Specs

A spec suite is provided, which can be run as:

bundle exec rake spec

Versioning Policy

Since Version 14.0.0, Ruby Emoji Regex's versions have followed that of the Unicode standard itself.

Ruby Emoji Regex is based upon the emoji-test-regex-pattern package.

  • If a patch revision of emoji-test-regex-pattern is released, and if its changes affect the Ruby port meaningfully, a version will be released with the same or greater patch version.
  • If a change is required to correct a bug specific to the Ruby port, the patch number will be incremented.

Ruby Compatibility Policy

While Ruby Emoji Regex uses features which should function on any Ruby version, it is explicitly intended to work on MRI Ruby versions which are currently within normal maintenance according to the Ruby team.

Creating a release

  1. Update the version in emoji_regex.gemspec
  2. rake release

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 123
Total Committers: 5
Avg Commits per committer: 24.6
Development Distribution Score (DDS): 0.35

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Jessica Stokes h****o@j****t 80
Renovate Bot b****t@r****m 30
renovate[bot] 2****] 6
Tim Lucas t@t****m 6
rhymes r****s@h****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 9 days ago

Total issues: 6
Total pull requests: 67
Average time to close issues: 11 months
Average time to close pull requests: 2 months
Total issue authors: 5
Total pull request authors: 6
Average comments per issue: 1.67
Average comments per pull request: 0.34
Merged pull request: 42
Bot issues: 1
Bot pull requests: 60

Past year issues: 0
Past year pull requests: 7
Past year average time to close issues: N/A
Past year average time to close pull requests: 2 months
Past year issue authors: 0
Past year pull request authors: 1
Past year average comments per issue: 0
Past year average comments per pull request: 0.0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 7

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ticky/ruby-emoji-regex

Top Issue Authors

  • ticky (2)
  • spaghetticode (1)
  • pboling (1)
  • zw963 (1)
  • renovate[bot] (1)

Top Pull Request Authors

  • renovate[bot] (60)
  • ticky (3)
  • rhymes (1)
  • yoyostile (1)
  • toolmantim (1)
  • benpickles (1)

Top Issue Labels

  • help wanted (1)

Top Pull Request Labels


Package metadata

gem.coop: emoji_regex

A set of Ruby regular expressions for matching Unicode Emoji symbols.

  • Homepage: https://github.com/ticky/ruby-emoji-regex
  • Documentation: http://www.rubydoc.info/gems/emoji_regex/
  • Licenses: MIT
  • Latest release: 15.0.0 (published almost 3 years ago)
  • Last Synced: 2026-03-01T10:34:38.760Z (2 days ago)
  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 119,327,969 Total
  • Docker Downloads: 42,437,819
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.215%
    • Downloads: 0.225%
    • Docker downloads count: 0.634%
  • Maintainers (1)
rubygems.org: emoji_regex

A set of Ruby regular expressions for matching Unicode Emoji symbols.

  • Homepage: https://github.com/ticky/ruby-emoji-regex
  • Documentation: http://www.rubydoc.info/gems/emoji_regex/
  • Licenses: MIT
  • Latest release: 15.0.0 (published almost 3 years ago)
  • Last Synced: 2026-02-27T23:01:10.111Z (3 days ago)
  • Versions: 13
  • Dependent Packages: 9
  • Dependent Repositories: 19,898
  • Downloads: 119,291,525 Total
  • Docker Downloads: 42,437,819
  • Rankings:
    • Downloads: 0.244%
    • Dependent repos count: 0.255%
    • Docker downloads count: 0.774%
    • Dependent packages count: 2.044%
    • Average: 4.48%
    • Stargazers count: 8.492%
    • Forks count: 15.072%
  • Maintainers (1)

Dependencies

package.json npm
  • emoji-test-regex-pattern 1.7.1 development
yarn.lock npm
  • emoji-test-regex-pattern 1.7.1
Gemfile rubygems
  • rake = 13.0.6
  • rspec = 3.11.0
Gemfile.lock rubygems
  • diff-lcs 1.5.0
  • emoji_regex 14.0.0.pre.1
  • rake 13.0.6
  • rspec 3.11.0
  • rspec-core 3.11.0
  • rspec-expectations 3.11.0
  • rspec-mocks 3.11.0
  • rspec-support 3.11.0
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • ruby/setup-ruby v1 composite
emoji_regex.gemspec rubygems

Score: 25.09601735881485