0xdanelia/regex_turing_machine

I am only getting 6 steps following the setup in the busybeaver.txt file

Closed this issue · 3 comments

I click "Replace" 7 times and then it halts.
Here is a screenshot.

Find: ^!0([01]{20})([01])([01]\r\n[ +^\r\n#)(.)\r\n(?=(.\r\n)^>\4.\2:([01])((0)|1)(.*\r\n))
Replace: !\8\8\1\6\3\9

image

Notepad++ V8.2.1

HUH... Ok so you HAVE to have a newline after the last instruction. So I had to have 16 rows.

When I added the blank line after 15 it worked.... Might want to add a note to the instructions.

image

Thanks for the report. I added a note in the README to address this.

Also hit this issue while copy-pasting, maybe its worth adding "Make sure to add at least one newline after your instruction set" or "Copy this line as well" into the busybeaver.txt itself :)

I can also confirm it works on Ubuntu Linux in gedit editor using modified \n-only regexp ^!0([01]{20})([01])([01]*\n\[ +\^\n#)(.*)\n(?=(.*\n)*^>\4\.\2:([01])((0)|1)(.*\n)) and holding spacebar on Replace All after clicking Find once.

Screenshot from 2022-02-23 03-36-21