Taha Aziz Ben Ali
                                            Taha Aziz Ben Ali
                                        
                                    I wrote a regular expression that handles this pretty well I think, at least for the couple test runs I made (with pen and paper). I'll post it tomorrow. >...
In formal language theory, the regular expression would be: ``` ((\{[rgbcmyBWn-]\})*.*)* ``` `(\{[rgbcmyBWn-]\})*` captures the tokens which are defined later on in this comment. The remaining `.*` captures any other...
I don't see why it wouldn't work, we can definitely have this. I suppose the crate should expose as much functionality as possible.
I'm struggling to make it work, but I'll keep you posted if I make any progress on this. If I take too long, I'm happy to accept a PR if...
I discovered that `RegexSet` doesn't do what I needed it to do, so I went with Regex which offers more functionality. But I feel as though I'm wrong. > `{colour}*{-}`...
> > Note that both special characters and colors are optional, it's also more efficient if we combine the color and special character set, e.g. ({color|special})*. > > I didn't...
Oh, lovely idea. Although this could be used in an improper way and may slow the program down, it's entirely dependent on the use case and the user probably knows...
> but I think this ability would please many users and open to different use cases. Yeah I can see how helpful this might be to someone who may want...
Hey :smiley: I'm back, I'm thinking we do this in a separate file, specifically a JSON file. I'm not sure how I'd be able to do this using JSON.
I haven't had the chance to work on this, but I did mess around with a few implementations (nothing serious, though). Something like this would require the codebase to be...