Post Reply 
Some text matching questions
Sep. 24, 2008, 05:07 AM
Post: #25
RE: Some text matching questions
Using what I've learned from the pink/red example, I've been trying to find a solution to my other original question (replacing exclamation points with periods), and I still can't get anything to work that doesn't destroy javascript and comments. The closest to success has been this one:

Code:
Match = (<$SET(open=1)|>$SET(open=))PrxNeverMatch
        |
        ([a-z0-9])\2
        !
       (\s|?)
        \1
        (^$TST(open=1))
Replace = \2.\1

It's clearly modeled on the red/pink filter, but the ones I created from scratch were disasters. The above example does seem to preserve javascript and comments, and it replaces many "!"s, but some are left untouched, including ones at the end of paragraphs, in header text, and consecutive exclamation points.
Quote this message in a reply
Post Reply 


Messages In This Thread
Some text matching questions - Vendettta - Sep. 10, 2008, 05:05 AM
RE: Some text matching questions - ProxRocks - Sep. 10, 2008, 04:21 PM
RE: Some text matching questions - Vendettta - Sep. 10, 2008, 07:52 PM
RE: Some text matching questions - lnminente - Sep. 10, 2008, 08:09 PM
RE: Some text matching questions - Vendettta - Sep. 11, 2008, 03:29 AM
RE: Some text matching questions - ProxRocks - Sep. 11, 2008, 12:18 PM
RE: Some text matching questions - Kye-U - Sep. 11, 2008, 01:10 PM
RE: Some text matching questions - Vendettta - Sep. 12, 2008, 03:40 AM
RE: Some text matching questions - ProxRocks - Sep. 12, 2008, 08:29 AM
RE: Some text matching questions - Guest - Sep. 13, 2008, 04:03 AM
RE: Some text matching questions - ProxRocks - Sep. 13, 2008, 02:30 PM
RE: Some text matching questions - lnminente - Sep. 13, 2008, 04:29 PM
RE: Some text matching questions - Vendettta - Sep. 16, 2008, 06:25 AM
RE: Some text matching questions - Guest - Sep. 16, 2008, 08:53 PM
RE: Some text matching questions - Vendettta - Sep. 17, 2008, 07:01 AM
RE: Some text matching questions - Guest - Sep. 17, 2008, 04:18 PM
RE: Some text matching questions - Guest - Sep. 19, 2008, 04:19 AM
RE: Some text matching questions - ProxRocks - Sep. 19, 2008, 11:44 AM
RE: Some text matching questions - Vendettta - Sep. 20, 2008, 02:30 AM
RE: Some text matching questions - ProxRocks - Sep. 20, 2008, 03:36 AM
RE: Some text matching questions - Guest - Sep. 20, 2008, 04:23 AM
RE: Some text matching questions - Vendettta - Sep. 22, 2008, 03:06 AM
RE: Some text matching questions - Guest - Sep. 22, 2008, 03:33 PM
RE: Some text matching questions - lnminente - Sep. 23, 2008, 08:23 PM
RE: Some text matching questions - Guest - Sep. 24, 2008, 02:46 PM
RE: Some text matching questions - Vendetta - Sep. 24, 2008 05:07 AM
RE: Some text matching questions - Vendettta - Sep. 25, 2008, 01:52 AM
RE: Some text matching questions - Guest - Sep. 25, 2008, 02:26 AM
RE: Some text matching questions - Vendettta - Sep. 25, 2008, 03:56 AM
RE: Some text matching questions - Guest - Sep. 25, 2008, 03:02 PM
RE: Some text matching questions - lnminente - Sep. 25, 2008, 09:24 AM
RE: Some text matching questions - Vendetta - Sep. 25, 2008, 08:14 PM
RE: Some text matching questions - lnminente - Sep. 26, 2008, 12:23 AM
RE: Some text matching questions - Guest - Sep. 26, 2008, 04:50 AM
RE: Some text matching questions - lnminente - Sep. 26, 2008, 09:43 AM
RE: Some text matching questions - lnminente - Oct. 27, 2008, 04:23 PM
RE: Some text matching questions - z12 - Oct. 27, 2008, 04:55 PM
RE: Some text matching questions - lnminente - Oct. 27, 2008, 06:14 PM
RE: Some text matching questions - z12 - Oct. 27, 2008, 07:06 PM
RE: Some text matching questions - lnminente - Oct. 28, 2008, 01:11 AM

Forum Jump: