Author Topic: Regexp word boundaries  (Read 6584 times)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Regexp word boundaries
« Reply #25 on: September 29, 2009, 09:53:19 AM »
#1. Use INNER_PATCH - changes to the work buffer aren't saved with that.
#2. Is case-insensitive.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline devSin

  • Planewalker
  • *****
  • Posts: 1632
  • Gender: Male
Re: Regexp word boundaries
« Reply #26 on: September 29, 2009, 01:33:10 PM »
Why won't the following compile without "WARNING: cannot verify trigger ~GlobalORGlobal(stuff)~: Failure("cannot find an argument of the right type")"? That makes me mad.
Code: [Select]
BEGIN ~SUCKYSUCKY2DOLLA~
IF ~!HasHerpes(Protagonist)~ 0
SAY #1
IF ~GlobalORGlobal("Cock","GLOBAL","Block","GLOBAL")~ DO ~Die()~ EXIT
IF ~Global("Cock","GLOBAL",0)
Global("Block","GLOBAL",0)~ DO ~Suck()~ EXIT
END
Scripting style: PST

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1030
  • Gender: Male
Re: Regexp word boundaries
« Reply #27 on: September 29, 2009, 02:18:51 PM »
Use INNER_PATCH - changes to the work buffer aren't saved with that.
Oh, right. Don't know why I didn't think of that since I've got INNER_PATCHes all over the place already. Kind of a belaboured method, but it works I guess.

Why won't the following compile
Because you fail miserably.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: