How to use regexp assertion

how to use regexp assertion
like this in perl
/some_pattern(?=exp)/

On Apr 22, 2008, at 00:57 , smellcode wrote:

how to use regexp assertion
like this in perl
/some_pattern(?=exp)/

http://www.zenspider.com/Languages/Ruby/QuickRef.html#11

3q, but i mean
how to use (?<!exp) and (?<=exp)
in irb
undefined (?..) sequence:
/\d+(?<=\w)/http://data.movie.xunlei.com/movie/39224

Posted by Jeremy McAnally (Guest)
on 03.02.2008 07:02

Install the oniguruma gem.

gem install oniguruma

It requires the C lib (installable from ports), but is installed by
default with Ruby 1.9. It handles lookbehind.

I found this

has any method to do it more native??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs