An extension to regular expressions called 'transductive regular expressions' (trre) introduces a new ':' symbol for pattern matching and text modification, offering a more natural approach to text editing than traditional regex. The implementation includes a command-line tool that supports various operations like replacement, deletion, and insertion, utilizing Finite State Transducers for processing.

https://github.com/c0stya/trre

via https://hnrss.org/newest?points=100

Reply to this note

Please Login to reply.

Discussion

No replies yet.