ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Ashoff" <Oliver.Ash...@xtramind.com>
Subject AW: Backspace in regular expression
Date Tue, 22 Jun 2004 15:59:03 GMT

Try 
    &#8;
instead of 
    \b
In general, the expression 
    #&<decnum>;
encodes any character where
<decnum> is a number in decimal notation.

Works fine with LINE FEED: #&10;

Oliver 

> -----Urspr√ľngliche Nachricht-----
> Von: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com] 
> Gesendet: Dienstag, 22. Juni 2004 12:02
> An: user@ant.apache.org
> Betreff: Backspace in regular expression
> 
> 
> 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