Replies: 4 comments
-
You can find the man page here, but it doesn't provide any further explanation, which I imagine was intended to eventually be forthcoming: https://web.archive.org/web/20151120075529/http://www2.research.att.com/~astopen/man/man1/egrep.html According to regex.h: ksh/src/lib/libast/include/regex.h Line 43 in af11607 And compared to extended mode: ksh/src/lib/libast/include/regex.h Line 44 in af11607 It would be worthwhile to verify that it works and provide a similar comment on the |
Beta Was this translation helpful? Give feedback.
-
OK I think I got it, the ~(X) is for augmented regular expression known as ARE, this is like ~(E) extended regular expression known as ERE but with the more RE meta char has noted by @dannyweldon with So it bring things like
|
Beta Was this translation helpful? Give feedback.
-
@phidebian, can you explain what this is doing with the
Also, it looks like the |
Beta Was this translation helpful? Give feedback.
-
Frankly I think it is doing magic. Yes < and > seems word anchor but can't prove this beside a test
See here <2 seems t say match all 2 from a word start
Dunno how to use this... Amazingly tests/comvario.sh reference only the & meta char in an non-sensical way to me, if we remove the ~(X) alltogether, we would remove the tests as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While ramping up my knowledge (for bug-833) of pattern in =~ construct I bump into this on the ksh man page
`
~(option:pattern-list)
...
`
Where could I find the ast-grep man page beside the well known abstract syntax grep man page, i.e where is the AT&T man page.
Beta Was this translation helpful? Give feedback.
All reactions