The issue seems to be that I am using the '-' character incorrectly inside the character class (it should be escaped), however the seg fault isnt very nice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh and yes, this happens every time with that pattern, I also tried putting it in single quotes, with no change.
The issue seems to be that I am using the '-' character incorrectly inside the character class (it should be escaped), however the seg fault isnt very nice.