Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
Thanks for all the help. Comments below.
> Thanks, but it:
> 1) Captures everything between the first and last query in a script if there
> is more than one cfquery in the script
Oops: sorry. Stick a question mark after the asterisks to stop the matches
being greedy.
Used this:
<[Cc][fF][qQ][uU][eE][rR][Yy].*?(EventName|AttendeeName)[^>].*?</[Cc][fF][qQ][uU][eE][rR][Yy]>
and got some finds again with multiple queries and some errors as mentioned below.
> 2) It produces some regular expression errors in Homesite.
Can't help you there. Sounds like HS's regex processor is bung: there's
nothing non-standard or tricky about that regex (which might cause
compatibility issues; JS vs PERL vs Java, etc).
HS on the whole is bung (IMO). Have you considered using a text editor
that is... err... *current*? ;-)
No, can you suggest one. Just use HS for years and it does most of what I want.
What sort of errors is it giving?
Regular expression error No 17. Bad expression format or internal error.
> The reason for this is I am developing on a windows machine with mysql and
> want to use the application online on a linux machine where table names are
> case sensitive. My code was not always faithful to that since in windows you
> can be sloppy!
Have you seen this:
http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html
It might be a better approach anyhow.
--
Adam
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
> <[Cc][fF][qQ][uU][eE][rR][Yy].*?(EventName|AttendeeName)[^>].*?</[Cc][fF][qQ][uU
> ][eE][rR][Yy]>
> and got some finds again with multiple queries and some errors as mentioned
> below.
Maybe drop the [^>]
Makes no difference. The original I had still works the best.
> No, can you suggest one. Just use HS for years and it does most of what I want.
Eclipse is probably the best option at present (all still IMO, obviously).
It seems to be where Adobe is applying their efforts for CF and Flex
development.
>> What sort of errors is it giving?
> Regular expression error No 17. Bad expression format or internal error.
Not so helpful then. I'm guessing "internal error" more than "bad format",
though.
> Have you seen this:
> http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html
>
> It might be a better approach anyhow.
Did you look at this?
Yes, and I think I know all the alternatives now -- just have to find those problem table names and do the grunt work! Thanks for all your suggestions.
--
Adam