in reply to Re^3: Regex word boundries
in thread Regex word boundries
I was wondering if you could possibly explain the regex you have used. I am trying now to identify one occurance of the term in a line of text so that I can work out the inverse document frequency (IDF).
So far I have worked out that you are looking for the term, using a non-capturing means (?:pattern), i.e. (?:\W). I haven't a clue what this actually does, nor about the part after \E ..... (?:(?=\W).
I know that the (?=\W) is a regex to look-ahead of a non-word, but not sure what the outer ?: is doing.
cheers,
MonkPaul.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex word boundries
by ikegami (Patriarch) on Oct 29, 2007 at 15:55 UTC |