Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Is it possible to use wildcards to match cell contents in an if statement?

$
0
0

You need to use GREP searches, not text searches. Your post suggests that you're not familiar with GREP, and you could do yourself no bigger favout than learning some basics. Try this search pattern in the GREp tab of the Find/Change dialog:

 

150\d+?-\d+

 

\d stands for 'digit', + stands for 'one or more', so \d+ stands for 'one or more digits', i.e. any number. The question mark stands for 'shortest match' -- you'll have to read up on that yourself.

 

In a script you would use this:

 

app.findGrepPreferences.findWhat = /150\d+?-\d+/.source

 

Peter


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>