How in ant use "<" in text?

When you want to use characters which stand for predefined standard entities in attribute value or text, you must write it as entity.

Predefined entity covers ” ‘ < > &

In your case you have to write

replaceregexp match="app_name&quot;&gt;(.*)&lt;"

(The single quot limits the attribute value here, when a single quote appear IN the value you have to use the entity ‘)

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Leave a Comment