I am simply trying to take the following text:
Password length (length ordered)
5 = 1 (0.37%)
6 = 1 (0.37%)
7 = 1 (0.37%)
8 = 157 (58.58%)
9 = 55 (20.52%)
10 = 33 (12.31%)
11 = 12 (4.48%)
12 = 6 (2.24%)
13 = 2 (0.75%)
And find every new line that exists between Password Length and \n\n. Here's what I was currently doing
data[/(?<=Password length)(.*?)(?=\n\n)/m]
but that captures (length ordered) in the first line.
I have tried to do something like this:
44] pry(main)> data[/(?<=Password length.*?\n)(.*?)(?=\n\n)/m]
(eval):2: invalid pattern in look-behind: /(?<=Password length.*?\n)(.*?)(?=\n\n)/m
To basically capture everything after Password length up to the new line, but as you can see above I get an error about the invalid pattern in look-behind.
What should I be doing instead of this to fix this?