On 08/26/2013 07:34 PM, Jan Schenkel wrote:
See the documentation for the 'filter' command.
In its current incarnation, that command uses 'wildcard' expressions to decide
which lines to retain and which to discard.
HTH,
Jan Schenkel
=====
Quartam Reports & PDF Library for LiveCode
www.quartam.com
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La
Rochefoucauld)
________________________________
From: Richmond <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Monday, August 26, 2013 6:14 PM
Subject: Wildcards ???
"The find and replace was always using wildcards() even when Use Regular
Expressions was false. The find
stack has been updated to allow users to choose the type of search from
Regular Expressions, Wildcards or
Plain Text."
What symbols must one use for a wildcard?
Richmond.
The reason I asked this question was because I had to do a socking great
search and replace
through about 5000 lines of code:
Yes, you guessed it; Richmond's "Devawriter Pro" won't go away; it just
gets bigger and groovier.
Now I had all sorts of 'horrible' bits to search for and replace and
Livecode didn't do "very well"
(coded way of saying something fairly negative) with searching for
phrases that had lines breaks in them.
I ended up doing everything in LibreOffice (bloody-minded), which was OK
as far as things went,
but Wildcards weren't in it.
Certainly I would like to be able to search for the following sort of
phrase:
set the unicodeText of the selected to ((numToChar(*)) & (numToChar(*))
& (numToChar(2325))
in such a way that I can replace:
((numToChar(22345)) & (numToChar(66778)) & (numToChar(2325)) with
((numToChar(22345)) & (numToChar(66778)) & (numToChar(4444))
and
((numToChar(99887)) & (numToChar(11223)) & (numToChar(2325)) with
((numToChar(99887)) & (numToChar(11223)) & (numToChar(4444))
that is to say, that the wildcard bits remain unchanged.
Richmond.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode