🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
1 messages
1 total messages Started by Jan_Celuch Wed, 14 Jan 2009 08:58
FindChangeByList - alternative words not accepted?
#2030
Author: Jan_Celuch
Date: Wed, 14 Jan 2009 08:58
14 lines
1159 bytes
Hi there,

I am hawing som trouble to make findchangebylist scrip to add a nonbreaking space after a certain short words... - it shoul look for: space/nonbreakingspace+short word from list+space and it should be casesensitive...

{findWhat:"(?i)(\\s|~S)(a|i|v|vo|o|s|so|z|zo|k|ku|u)(\\s)"}	{changeTo:"$1$2~S"}

Strange thing is, that it is working when I use "(.|..)" instead of list of alternative words, but this changes also the other one/twocharacter words, that I do not want to be changed...

{findWhat:"(?i)(\\s|~S)(.|..)(\\s)"}

Does anyone know, what am I doing wrong?
Thanx a lot

Jan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads