Sundeep (Sundeep Agarwal)
- Login: Sundeep
- Registered on: 02/21/2018
- Last sign in: 01/24/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
01/24/2024
-
08:41 AM Ruby Bug #20207 (Closed): Segmentation fault for a regexp containing positive and negative lookaheads
- I'm getting segmentation fault for the following regexp with Ruby 3.3.0:
``` ruby
puts 'clan'.match?(/(?=.*a)(?!.*n)/)
```
This is the minimal example for which I was able to produce the issue. `a` and `n` in the above example
a...
02/24/2018
-
02:13 AM Ruby Bug #14500: Missing Regexp documentation and clarification on behavior of \K for edge case
- oh, I didn't check with `$10`. I'd tried with backreference. Any idea how to use `\10`?
```
$ echo 'abcdefghij' | ruby -pe 'sub(/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/, ":\\9:")'
:i:
$ echo 'abcdefghij' | ruby -pe 'sub(/(.)(.)(.)(.)(.)(.)...
02/21/2018
-
05:07 AM Ruby Bug #14500 (Closed): Missing Regexp documentation and clarification on behavior of \K for edge case
- **Capturing** section (https://ruby-doc.org/core-2.5.0/Regexp.html#class-Regexp-label-Capturing)
* formatting issue: `n<sup>th</sup>`
* suggestion to add a note on `\0` similar to the note mentioned in **Special global variables** (h...