- 论坛徽章:
- 0
|
Hi, all
pattern seems like \(subregexp1\) \| \(subregexp2)\ \| ....
I want to know if there is some way to dicide which subregexp(S) match the text when the whole regexp(dfa) says it matches;
This is my original problem:
There are about 200-2000 regexp, given a text, how to match _quickly_(so not an for(; statements)
e.g.
1. a.*b
2. b.*c
3. c.*d
text is "abce"
then result is "regexp 1 and 2 match"
I also want to know 1 and 2 matches which part of the text respectively。
Any help is greatly appreciated. |
|