in reply to Regex help
You could also use the (?(...)TRUE|FALSE) assertion to clean that up a bit:/(?:(?=\w)(?<!\w)|(?=\W)(?<!\W))($thing)(?:(?<=\w)(?!\w)|(?<=\W)(?!\W) +)/
/(?(?=\w)(?<!\w)|(?<!\W))($thing)(?(?<=\w)(?!\w)|(?!\W))/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex help
by pKai (Priest) on Jan 14, 2006 at 18:29 UTC | |
by ysth (Canon) on Jan 15, 2006 at 09:33 UTC | |
by pKai (Priest) on Jan 15, 2006 at 11:36 UTC | |
by ysth (Canon) on Jan 15, 2006 at 19:49 UTC | |
by pKai (Priest) on Jan 16, 2006 at 10:27 UTC |