Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular Expressions
Message
From
21/11/2002 14:27:55
 
 
To
21/11/2002 09:22:12
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Miscellaneous
Thread ID:
00724590
Message ID:
00725404
Views:
10
I'm not sure just how relevant this is, but I use UltraEdit for text editing, and it contains a couple of regular expression search styles. One it refers to as 'regular expressions - Unix Style', and the other as 'regular expressions UltraEdit style'.

For the heck of it, I just tested the Unix style regular expression search, and it works the way I expected. The beginning of line symbol means beginning of line. End of line symbol is not required.

As I said, I don't really know if it means anything, but it appears to be at least one more vote for 'beginning of line' meaning just what it says.

I think maybe tonight I'll dig out one of those old, dusty Unix books (if I remember) and have a look.

Alan

>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform