in reply to Re: Using pos() inside regexp (no /e)
in thread Using pos() inside regexp
nevertheless it's interesting to know is it possible to use pos() function to set search position inside of regexp, or it works outside only.s/((?:[^\n]{0,15}$)|(?:[^\n]{0,14},)|(?:[^\n]{15})(?=[^\n]))/$1\n/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using pos() inside regexp (no /e)
by ikegami (Patriarch) on Oct 08, 2010 at 15:32 UTC | |
by tye (Sage) on Oct 08, 2010 at 17:48 UTC | |
by braveghost (Acolyte) on Oct 09, 2010 at 07:28 UTC | |
|
Re^3: Using pos() inside regexp (no /e)
by andal (Hermit) on Oct 08, 2010 at 15:32 UTC | |
by ikegami (Patriarch) on Oct 08, 2010 at 15:38 UTC | |
by Anonymous Monk on Oct 12, 2010 at 08:05 UTC | |
by ikegami (Patriarch) on Oct 12, 2010 at 15:25 UTC | |
by andal (Hermit) on Oct 13, 2010 at 08:58 UTC | |
| |
by braveghost (Acolyte) on Oct 08, 2010 at 22:44 UTC | |
by ww (Archbishop) on Oct 09, 2010 at 00:54 UTC | |
by braveghost (Acolyte) on Oct 09, 2010 at 09:08 UTC | |
by ww (Archbishop) on Oct 09, 2010 at 11:46 UTC | |
|