zyedidia / sregx

A tool and library for using structural regular expressions.
MIT License
59 stars 4 forks source link

Example has a mistake #5

Closed gavlooth closed 1 year ago

gavlooth commented 1 year ago

There is this example: Print all lines containing "rob" but not "robot":

x/.*\n/ g/rob v/robot/p

I think it should be

Print all lines containing "rob" but not "robot":

x/.*\n/ g/rob/ v/robot/p

zyedidia commented 1 year ago

Yes I think you are right. Fixed, thanks!