Reverses the program (effectively matching the reverse pattern). It is a well-known fact that any regular expression can be reordered trivially into an equivalent regular expression to be applied in backward direction (coming in real handy for look-behind expressions). Example: instead
()
| 523 | * </p> |
| 524 | */ |
| 525 | public void reverse() { |
| 526 | reverse(findPrefixLength, program.length); |
| 527 | } |
| 528 | |
| 529 | /** |
| 530 | * Reverses a specific part of the program (to match in reverse direction). |