I need to match an expression and its reverse to a very long string.
When a match occurs all matching should stop and the position of the match should be returned.
Question1: can I match the forward and reverse expression to the string on the same time and thereby save half the time it normally would take to find a match or does the matching just get slower?
Question2: is the "fork" function what I should use in order to match a string with multiple expressions simultaneously?
Thanks to all helpers!...