Quote from: WizWom on August 28, 2006, 03:01:00 PMWell, sorry to break out the bad news, but... it does.
But '^' introduces no compatability problems.
Quote from: NiGHTMARE on August 28, 2006, 01:42:51 PMI do care about compatability.
If you don't care about compatability, isn't using a prefix pretty pointless?
Quote from: WizWom on August 27, 2006, 03:17:43 AMA modification to Virtue explores all CRE files, looks up their DV and figures out script and P dialogue, and tweaks the said files; afterwards, it appends to a list the names of the *P.d files and the BCS files it modified, to avoid patching them twice. The method to check if a given file is in said list involves regexps and would fail (as of now) with w^something in a DV. Similar problems should arise with Revised Armors from Refinements.
OK, let me get this straight, your mod is, for some crazy reason, searching for all references to arbitrary files? Whatever would you be doing that for?
Edit: the old wombat head off to find and explore your TP2 files...
Quote from: WizWom on August 26, 2006, 06:45:43 PMYes, while ~^"%FILE_NAME%"$~ would work, I'd have to re-publish the mod to change this little tidbit, which isn't very funny
Edit: I suppose, thinking of it, one might wish to make a check for references to a certain file, but then, that is what double quotes are for. i.e., ~"%FILE_NAME%"~ (or escaped however you would have to to get the regexp parser the double quote around the finle name you are checking for, I know not CAML)

Quote from: The Bigg on August 26, 2006, 02:17:45 PMSilly... if you want to look for "^" or "$" in a regexp, you have to escape them. because they are specials. the Regexp "w^^^$$$w" would only find a 'w', followed by 5 blank lines, then another 'w'. To find "w^^^$$$w" would require the RegExp "w\^\^\^\$\$\$w" - or any of a number of other combinations - "w.*w" being the simplest.Quote from: WizWom on August 26, 2006, 01:52:39 PMI'm pretty sure the OCaml regexp parser hiccups on that. Just to test it,
Um... NO.
^ at the beginning of a Regexp means "start of line" - not the "^" character. It is the opposite end delimiter to the $. So, really, you should have no problem at all, if that regexp parser is working properly. If it's not, we've got more issues than this.
If the data in %SOURCE_RES% is w^^^$$$w, it would still get parsed correctly. I cannot imagine you getting confused on data/code issues like that.
I.E. the regexp "w^^^$$$w" is not found inside the string "w^^^$$$w".
Quote from: WizWom on August 26, 2006, 01:52:39 PMI'm pretty sure the OCaml regexp parser hiccups on that. Just to test it,
Um... NO.
^ at the beginning of a Regexp means "start of line" - not the "^" character. It is the opposite end delimiter to the $. So, really, you should have no problem at all, if that regexp parser is working properly. If it's not, we've got more issues than this.
If the data in %SOURCE_RES% is w^^^$$$w, it would still get parsed correctly. I cannot imagine you getting confused on data/code issues like that.
Valerio@acer-01vdcn9bdz ~
$ ocaml str.cma
Objective Caml version 3.09.0
# let x = Str.regexp "w^^^$$$w";;
val x : Str.regexp = <abstr>
# let f = "w^^^$$$w";;
val f : string = "w^^^$$$w"
# Str.string_match x f 0;;
- : bool = false
# Str.search_forward x f 0;;
Exception: Not_found.
# exit 0;;
Valerio@acer-01vdcn9bdz ~
$