Quote:
Originally Posted by davidfor
The "?" are for "non-greedy". In the original suggestion, the groups will only matching one character one each side of the space-dash-space.
Using the following might be safer:
That says you want to match the whole title where there is a space-dash-space in the middle. The non-greedy probably isn't needed unless there is a chance for two space-dash-space matches in the original title.
|
thanks, this REGEX works without problem