Copy link to clipboard
Copied
So I'm trying to create GREP styling to help making a project faster. I'm trying to have everything between a period and a comma character styled, or between a period and the word 'by or at'
This is what I have so far:
(?<=\.).+?(((\s)(?i)by(\s))|((\s)(?i)at(\s))|(?=,))
My issue is that a date sometimes appears, Dec. 2, and because it's between the period and comma it gets the character style. How can I eliminate that, or tell it to ignore digits or make it only do it to one or more words?
Help!
Quick shot:
instead of .+? try \D+?
that means "everything except digits".
Copy link to clipboard
Copied
Quick shot:
instead of .+? try \D+?
that means "everything except digits".
Copy link to clipboard
Copied
Ah that worked!! I did
(?<=\.)(\D+?)(((\s)(?i)by(\s))|((\s)(?i)at(\s))|(?=,))
Man, I was searching everywhere. Thanks so much!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now