then you require a more advanced type of regex (something Az could certainly provide!).
is the " bite."ALWAYS a " somethingWitoutSpaces." ? cause if so perhaps you can use a lookbehind construction.
another identifier might be: "[.]\s{2}\w+[.]" you could then replace the \s{2} with e.g. @#@ upfront.
macro regex issue, end of line in multiline
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: macro regex issue, end of line in multiline
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: macro regex issue, end of line in multiline
Bring it on Az!!wolph42 wrote:then you require a more advanced type of regex (something Az could certainly provide!).
Here goes another few hours testing lookbehind!wolph42 wrote: is the " bite."ALWAYS a " somethingWitoutSpaces." ? cause if so perhaps you can use a lookbehind construction.
another identifier might be: "[.]\s{2}\w+[.]" you could then replace the \s{2} with e.g. @#@ upfront.
BTW, I noticed on your limit sight map you had kind of a cloudy FOW instead of the usual straight black, what's up with that? How'd you get that? I found it quite a nice surprise! How do you accomplish this?
OOOHH RegEx....YOU BITTER-SWEET BEAST!!!
Re: macro regex issue, end of line in multiline
You can use an image for the FOW. I have a heavy snow FOW image I use sometimes. It has a very slight transparency to it, so large dark objects can be seen, but not in detail. The option to change to an image is under the map settings, edit map.Sereptus wrote:BTW, I noticed on your limit sight map you had kind of a cloudy FOW instead of the usual straight black, what's up with that? How'd you get that? I found it quite a nice surprise! How do you accomplish this?
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: macro regex issue, end of line in multiline
Forest for the trees eh? I figured I was going to have to go into some deeply embedded archive and rip apart an asset file etc.... Wow this is going to add a whole new theme for my players! Can't believe I didn't look at this option before!aliasmask wrote: You can use an image for the FOW. I have a heavy snow FOW image I use sometimes. It has a very slight transparency to it, so large dark objects can be seen, but not in detail. The option to change to an image is under the map settings, edit map.
OOOHH RegEx....YOU BITTER-SWEET BEAST!!!
Re: macro regex issue, end of line in multiline
So is there no way to put the carriage returns back in? I mean if the input() strips it away, couldn't we restrip it?aliasmask wrote:The way the data is entered matters. With the statblock importer, there are no CRLF because the info is entered via input() text field which filters out those characters.
I assume this can't be done or it would've been an option you mentioned.
OOOHH RegEx....YOU BITTER-SWEET BEAST!!!
Re: macro regex issue, end of line in multiline
you could use a form. that does work
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS