S
S
SOb_S2013-01-10 23:03:54
ruby
SOb_S, 2013-01-10 23:03:54

Need help customizing Regexp for Oniguruma?

There is Octopress. Its files use regexp with look behind. There is Ruby, version 1.8, which by itself does not support look behind. There is Oniguruma, which, in theory, supports everything you need. I don't understand how to convert an expression of one type to a "understandable" Oniguruma. Can anyone take a look? :) Thanks.
Code example:

/<div class="entry-content">(?<content>[\s\S]*?)<\/div>\s*<(footer|\/article)>/ =~ input

Link 1
Link 2

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question