Hi,
I have small problem. I need to delete the code below from 250 text files.
<field name="FILEREV" presence="hidden" y="7.112mm" x="128.524mm" w="4.23mm" h="4.5mm">
The problem is that x and y are not constant. They are different in every file.
I tried
<field name="FILEREV" presence="hidden" y="*****mm" x="*****mm" w="4.23mm" h="4.5mm">
but it is not working. Does anyone knows what should be used when the data to be replaced changes?
Thanks,
Sebastian
WILDEDIT: WildCard search/replace
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: WILDEDIT: WildCard search/replace
WildEdit uses regular expressions, not wildcards.
To match any number with an optional . in it use [0-9.]+
i.e.:
<field name="FILEREV" presence="hidden" y="[0-9.]+mm" x="[0-9.]+mm" w="[0-9.]+mm" h="[0-9.]+mm">
To match any number with an optional . in it use [0-9.]+
i.e.:
<field name="FILEREV" presence="hidden" y="[0-9.]+mm" x="[0-9.]+mm" w="[0-9.]+mm" h="[0-9.]+mm">
hmmm it didn't work. WildEdit didn't find a match.
When I put FIND What:
<field name="FILEREV" presence="hidden" y="7.112mm" x="128.524mm" w="4.23mm" h="4.5mm">
it finds it.
when I put:
<field name="FILEREV" presence="hidden" y="[0-9.]+mm" x="[0-9.]+mm" w="[0-9.]+mm" h="[0-9.]+mm">
nothing
should i put [0-9.]+ for every number?
Thanks,
Sebastian
When I put FIND What:
<field name="FILEREV" presence="hidden" y="7.112mm" x="128.524mm" w="4.23mm" h="4.5mm">
it finds it.
when I put:
<field name="FILEREV" presence="hidden" y="[0-9.]+mm" x="[0-9.]+mm" w="[0-9.]+mm" h="[0-9.]+mm">
nothing
should i put [0-9.]+ for every number?
Thanks,
Sebastian