Amig0 (Leo Amigud)
- Login: Amig0
- Registered on: 10/22/2016
- Last sign in: 10/22/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
10/23/2016
-
02:48 AM Ruby Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Matthew Kerwin wrote:
> Leo Amigud wrote:
> ...
Thank you for the explanation!
Leo
10/22/2016
-
10:59 PM Ruby Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Hans Mackowiak wrote:
> it did took me a while to understand what you mean, because the regexp are displayed wrong.
> ...
Sorry, not sure what you mean.
As a matter of fact i can use regexp like:
irb(main):013:0> numbers = '\d+'
... -
03:46 AM Ruby Bug #12862 (Closed): Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Loading development environment (Rails 4.2.5)
```
irb(main):001:0> /\$(?<dollars>\d+)\.(?<cents>\d+)/ =~ "$3.67"
=> 0
irb(main):002:0> dollars
=> "3"
```
BUT:
```
irb(main):001:0> numbers = '\d+'
=> "\\d+"
irb(main):002:...