Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more realistic regex example #1134

Closed
wants to merge 1 commit into from

Conversation

gcapes
Copy link
Contributor

@gcapes gcapes commented Aug 26, 2020

Fix #930.

@gdevenyi
Copy link
Contributor

I'm neural on this. This regex is far more complex, and the modification also includes the addition of a "-r" option

@gcapes gcapes added the type:discussion Discussion or feedback about the lesson label Oct 15, 2020
@deppen8
Copy link
Contributor

deppen8 commented Sep 1, 2021

Reviving this PR...

I don't feel super strongly that the haiku example needs replaced, but if that is the route you want to go, how about something that searches the DNA sequences in creatures/? I am not a geneticist, but I could imagine you might want to find patterns in the sequences. Here is one that got three hits right away. (It also gets hits if you drop the .{3} for less complexity.)

$ cd creatures/
$ grep -E "^.{3}TTC" basilisk.dat
CATTTCGCGC
TGATTCCAGA
GCCTTCCTAT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:discussion Discussion or feedback about the lesson
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants