> * 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;

?

incze

Reply via email to