It's been awhile for me too, but if I remember correctly, when regular expressions are used in text editing, regular expressions consist of zero or more characters followed by an end-of-string delimiter (typically NUL). Some utilities limit the processing to lines (0 or more characters followed by a newline character) but some utilities recognize the newline character as an ordinary character. However, I do not remember the difference between regular expressions and extended regular expressions. I think historical regular expressions are referred to basic regular expressions (BRE), but then my memory may be incorrect.
>Are you sure about that assumption? I seem to recall using regular expressions in Unix in text editing, and I'm sure that 'beginning of line' meant exactly that, and not 'beginning of text'. On the other hand, I do have to admit that by now I've pretty much forgotten just about everything I ever knew about Unix.
>
>Alan
>
>>>I say there are 4, and I think most normal humans would agree with me. For example, 'Regular' is at the beginning of a line.
>>>
>>>Not according to the Regular Expressions inner workings. There is only 1 line, and it begins with 'Welcome'.
>>
>>Of course, the assumption is that your regular expression is in a single line, which is the way regular expressions are usually used.
>>
>>I believe your suggestion is more accurate, in any case.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"