ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Backspace in regular expression
Date Tue, 22 Jun 2004 15:10:22 GMT
with backslash, use the double or nothing principle:

    <substitution expression="\\\\b"/>

Peter
Ivan Ivanov wrote:

>Dear Colleagues,
>
>I want to replace a string in a file with backspace,
>but I do not know how to escape backspace literal
>"\b". I tried
><replaceregexp byline="true" file="myfile">
>    <regexp pattern="alabala"/>
>    <substitution expression="\b"/>
></replaceregexp>
>
>but it replace "alabala" with letter "b" and some
>other variants but with no success.
>
>Regards Ivan
>
>
>
>
>	
>		
>__________________________________
>Do you Yahoo!?
>New and Improved Yahoo! Mail - 100MB free storage!
>http://promotions.yahoo.com/new_mail 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message