RegEx Tests
Swift Forums
RegEx Tests
As part of my compilers class, the teacher told me that we will be coming across with Regular Expressions (RegEx). Since I want to do the project in Swift, I tried experimenting today with the ways to do RegExs. After some investigation, I found 4 ways with a different purpose each: RegEx literals, RegEx builder, Dynamic Pattern, and NSRegularExpression. I created a function for each one of them and measured the runtime for each one of them using the same 2 inputs and the same regular expressio...
0 comments
No comments yet.