Incze Lajos wrote:
* simulate ^ and $ operators by prepending and appending special start
and end markers to the input string.
E.g.
String START = "__START__";
String END = "__END__";
inputString = START + inputString + END;
What about
char START = '^';
char END = '$';
inputString = START + inputString + END;
?
The probability of encountering a $ sign somewhere inside URL is not
insignificant... I agree that it's very unlikely (perhaps even illegal)
to use ^ in URLs, but $ are sometimes used.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com