I have the following text file:
Manifest-Version: 3.0.0
Ant-Version: Apache Ant 1.7.1
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Require-Bundle: org.eclipse.linuxtools.cdt.libhover; bundle-version = "1.
1.0 "
Bundle-SymbolicName: com.qnx.doc.gestures.lib_ref
Bundle-Version: 3.0.0.20121120
Bundle-localization: plugin
Bundle-name:% plugin.name
Bundle-vendor:% plugin.providername
And I'm trying to use the following template in a replaceregexp task
regexp pattern = 'Require-Bundle: org.eclipse.linuxtools.cdt.libhover; bundle-version = "1.
[\ s \ S] * '
To get this done:
Manifest-Version: 3.0.0
Ant-Version: Apache Ant 1.7.1
Created-By: 10.0-b19 (Sun Microsystems Inc.)
1.0 "
Bundle-SymbolicName: com.qnx.doc.gestures.lib_ref
Bundle-Version: 3.0.0.20121120
Bundle-localization: plugin
Bundle-name:% plugin.name
Bundle-vendor:% plugin.providername
The problem is that I keep getting the following:
Manifest-Version: 3.0.0 Ant-Version: Apache Ant 1.7.1 Created-By: 10.0-b19 (Sun Microsystems Inc.) 1.0 "Bundle-SymbolicName: com.qnx.doc.gestures.lib_ref Bundle-Version: 3.0. 0.2012 112 120 Bundle-Localization: plugin Bundle-Name:% plugin.name Bundle-Vendor:% plugin.providername
What should my regex be to get rid of an empty string?
Thanks.
source share