Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

need help with a GREP statement

$
0
0

I'm trying to select just the x

舌ぽう (舌鋒x) ぜっぽう (sharp) tongue

じょう舌 (饒x舌) じょうぜつ garrulity, loquacity

Its always in parentheses. So I want to LookBehind for a left parenthesis then zero or more characters, and LookAhead for zero or more character followed by a parenthesis.

I thought this would work, but it doesn't: (?<=\(.?)x(?=.?\))

This one will select all the text between the parentheses, but I only want the x: (?<=\().?x.?(?=\))

I also tried this (not sure if you can have two lookbehinds...but it didn't work:

(?<=\()(?<=.?)x(?=.?)(?=\))

I'm out of ideas.


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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