does. Even in Java RegEx (used for CFMX 6.1), you have to set a switch to say
that ^ matched the beginning of each line rather than the beginning of the
entire file.
Note that in the description below, they say beginning of line as beginning of
the entire file, not the beginning of a single line of the file. A ^ will only
match the first line in a multi-line file.
> On Apr 16, 2004, at 11:48 AM, Ben Doom wrote:
>
> > Hmm. For some reason I was thinking that the studio regex engine saw ^
> > as beginning of line, not of file.
> >
> > Ah, well.
> >
> > --Ben
> >
> >
>
> Again, I don't use studio but:
>
>
> See below
>
> HTH
>
> Dick
>
> Using Regular Expressions
>
> Regular expressions are a common form of expressing pattern matching.
> The most common forms of regular expressions are listed below. Note
> that the quotation marks (") in the examples are meant to set off terms
> from the rest of the text, and are not part of the examples.
> string
> A regular string of characters will match the same string of
> characters in the item being searched. Thus you can search for all
> occurances of the string "test" by using the regular _expression_ "test".
> This will also match lines with "testimony", "latest" and "intestine".
> start (^)
> This indicates "beginning of line" in a match. For example "^test"
> matches all lines that begin with "test". Note that this must appear as
> the left most character to work in this manner.
> end ($)
> This indicates "end of line". The regular _expression_ "test$" will
> match those lines that end with "test", and "^test$" will match those
> lines that contain only "test". Note that to word as the end of line,
> the "$" must be the last character in the _expression_.
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

