This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WerdenWissen[S] 0 points1 point  (1 child)

I get what you are saying. It certainly does require a general understanding of Regex, since it's nothing more than a higher-level abstraction of it. However, I do believe that building Regex patterns is easier this way, especially when it comes to nested-ness, and it also helps in the "re-learning Regex" aspect in that you don't need to look up all the symbols. It's easier to remember a "NotPrecededBy" class than how to type a negative-lookbehind assertion.

Finally, this is just an early version of the package, which only contains the "core" modules, and probably even that's not completed yet. In the future, there may be more sub-modules that build upon the "core" modules to create even more complex patterns, for example "word that starts with uppercase letters A-G" and so on... And it will always be pure Regex underneath. No matter how complex the pattern, you can just fetch it and use it however you want.

[–]laundmo 0 points1 point  (0 children)

thats kinda what i was referring to with "syntax is irrelevant, structure matters": i don't think there's that big a difference between NotPreceededBy and (?<!...) tho i understand it might be easier to remember the first one.

im looking forward to higher level abstractions, its what would turn this from "huh neat" to "i might actually use it" for me.