Skip to content
Simple module to allow using regular expression replacing via liquid filters
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
Gemfile
LICENSE
README.md
jekyll-regex-replace.gemspec

README.md

Jekyll Regex Replace

Simple module to allow using regular expression replacing via liquid filters

{{ '1-a-test' | regex_replace: '^[0-9]*-', '' }}

or

{{ '1-a-test-2-a-test' | regex_replace_once: '[0-9]*-', '' }}

Install

Add the following to your Gemfile and then run bundle install.

gem 'jekyll-regex-replace'
You can’t perform that action at this time.