[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] Re: S & R query
I think it would be useful to have a "getting started" page for
Advanced S&R. (In index2.html there is a line for Advanced search and
replace, but it isn't a link.)
For example I have just noticed that in the examples, things like @1
and {X} are separated by spaces. When I was trying to construct such
things I didn't put spaces in, as i didn't want it looking for spaces
there. Of course, it would not be, as the spaces would have to be in
quotes for that to be the case, but it wasn't intuitive.
Are the spaces between "keywords" necessary, or just to improve
readability?
Is there a way to create long expressions outside the relatively small
window?
Is there a wasy to store commonly used ones for future use?
In message <56b8548384Lists@xxxxxxxxxxx>
"Richard Torrens (lists)" <Lists@xxxxxxxxxxx> wrote:
> In article <b55e48b856.Alan.Adams@xxxxxxxxxxxxxxxxxxxxxx>,
> Alan Adams <alan@xxxxxxxxxxxxxxxx> wrote:
>> The confusing thing is that elsewhere \t means tab. Here is means a
>> list of characters, including those that wrap lines. This doesn't to
>> me, fit the definition of whitespace.
>> I don't expect whitespace to wrap around line ends.
> Alan
> I am currently spending a lot of effort rewriting StrongHelp and
> clarifying it, as well as adding examples.
> So I suggest you read it!
> If you don't like the definition of White - then roll yuor own Character
> set.
> There is a (very) simple example:
> http://diy.Torrens.org/RO/StrongED/man/asr_examples/set.html
> I can't disagree about white including new lines. But it is so simple to
> define your own set!
The situations where end-of-line is not significant are relatively few
- html and plain text are the only ones I can think of. Even in plain
text, collapsing whitespace to a single space using "white" would join
lines (not a problem) but would also merge paragraphs, which is likely
to be unintended.
> The current definition of white Space certainly is not unusual - it is
> the html default. So StrongED is not out of step.
The confusing part is the definition - '\t\x0A' expanding to be space,
tab, newline, carriage return and others. \x0A ia specifically one
character, so the rest must be the expansion of \t. In which case,
what is the key for tab?
--
Alan Adams, from Northamptonshire
alan@xxxxxxxxxxxxxxxx
http://www.nckc.org.uk/
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://diy.Torrens.org/RO/StrongED/index.html