SanskritFritz: -------------------------------------------------------------------------------- This is the search expression: -.*?/ This is where i preform the search: CC-3623843-4/2008 I expected PSPAd to find -4/ but it only finds -3623843-4/ --------------------------------------------------------------------------------
I belive, this is a standard behaviour, which you also get in other re engines (I just checked python and javascript). The search is performed left-to-right, the backtracking is only used if there is no match reached. Can you maybe provide a sample of data and what should be matched? (maybe the pattern could be adopted). You can e.g. use the following to get the wanted effect: _-[^-]*?/_ or some other pattern. -- <http://forum.pspad.com/read.php?4,48172,48174> PSPad freeware editor http://www.pspad.com
