Created
June 18, 2011 12:54
-
-
Save dotemacs/1033069 to your computer and use it in GitHub Desktop.
Regexp for rinari-conosole/inf-ruby mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi Steve, that didn't quite work for me for: | |
| ruby-1.9.2-p0 > | |
| prompt. | |
| So I did a bit of testing with the environments/versions of Ruby that I have available to me and I think this might be a better solution: | |
| "[[:alnum:]-\s.:\(\)]+\\(>\\{1,2\\}\\)\s" | |
| These are the environments I had available to me, might be useful to you along with 'regexp-builder' in Emacs to test. | |
| # MRI 1.9.2 | |
| ruby-1.9.2-p0 > | |
| RUBY-1.9.2-p0 > | |
| ruby-1.9.2-p0 >> | |
| # jruby | |
| jruby-1.5.2 > | |
| jruby-1.5.2 >> | |
| # MRI 1.8.7 | |
| irb(main):001:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment