RPTools.net

Discussion and Support

Skip to content

It is currently Thu Jan 18, 2018 1:17 am 






Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9440
Location: Netherlands
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Fri Dec 08, 2017 1:57 am 
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.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Giant
 
Joined: Tue Jun 07, 2011 11:08 am
Posts: 103
Location: Canada
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Fri Dec 08, 2017 10:44 am 
wolph42 wrote:
then you require a more advanced type of regex (something Az could certainly provide!).

Bring it on Az!!

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.


:roll: Here goes another few hours testing lookbehind! :roll:

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!!!


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7983
Location: Bay Area
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Fri Dec 08, 2017 12:49 pm 
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?


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.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Giant
 
Joined: Tue Jun 07, 2011 11:08 am
Posts: 103
Location: Canada
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Fri Dec 08, 2017 7:48 pm 
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.


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.... :P Wow this is going to add a whole new theme for my players! :D Can't believe I didn't look at this option before! :oops:

_________________
OOOHH RegEx....YOU BITTER-SWEET BEAST!!!


Top
 Profile  
 
User avatar  Offline
Giant
 
Joined: Tue Jun 07, 2011 11:08 am
Posts: 103
Location: Canada
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Tue Dec 19, 2017 12:45 pm 
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.


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? :P

I assume this can't be done or it would've been an option you mentioned. :?

_________________
OOOHH RegEx....YOU BITTER-SWEET BEAST!!!


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9440
Location: Netherlands
 Post subject: Re: macro regex issue, end of line in multiline
PostPosted: Tue Dec 19, 2017 12:50 pm 
you could use a form. that does work

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman