[TYPO3-core] RFC: #7370: Delete unused Marker in parsehtml::substituteMarkerArray

Steffen Kamper steffen at sk-typo3.de
Mon Feb 4 19:11:22 CET 2008


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag 
news:mailman.1.1202147880.25707.typo3-team-core at lists.netfielders.de...

> This CLI command worked for me
> php -r
>  'echo preg_replace("/#([A-Z0-9_-|]*)#/is","","a #b# cd #e# f"),"\n";'
>
>> Do you have a suggestion?
>
> preg_replace returns the changed string, it doesn't change the argument.
>
> BTW, please use preg_quote() on the wraps.
>
> Masi
>
> PS: Also note that we here the example of the problematic strtoupper().
> This will break Turkish sites (as it is affected by the locale). It should
> be strtr('a...z','A..Z').

thank you Masi, now it works with one line. I also changed the strtoupper as 
you suggested.
New patch is attached.

vg  Steffen 


begin 666 delteUnusedMarker2.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7W!A<G-E:'1M;"YP:' -"CT]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T-"BTM+2!T,VQI8B]C;&%S<RYT,VQI8E]P87)S
M96AT;6PN<&AP"2AR979I<VEO;B S,#4R*0T**RLK('0S;&EB+V-L87-S+G0S
M;&EB7W!A<G-E:'1M;"YP:' )*'=O<FMI;F<@8V]P>2D-"D! ("TR,38L-R K
M,C$V+#<@0$ -"B )"7)E='5R;B D8F5F;W)E+B1B971W965N+B1A9G1E<CL*
M( E]"B *+0D**PH@"2\J*@H@"2 J(%-U8G-T:71U=&5S(&$@;6%R:V5R('-T
M<FEN9R!I;B!T:&4@:6YP=70 at 8V]N=&5N=" H8GD at 82!S:6UP;&4@<W1R7W)E
M<&QA8V4H*2D*( D@*@I 0" M,C,X+#(W("LR,S at L,S, at 0$ -"B )("H at 0'!A
M<F%M"7-T<FEN9PD)5&AE(&-O;G1E;G0@<W1R96%M+"!T>7!I8V%L;'D at 2%1-
M3"!T96UP;&%T92!C;VYT96YT+ at H@"2 J($!P87)A;0EA<G)A>0D)5&AE(&%R
M<F%Y(&]F(&ME>2]V86QU92!P86ER<R!B96EN9R!M87)K97(O8V]N=&5N="!V
M86QU97,@=7-E9"!I;B!T:&4@<W5B<W1I='5T:6]N+B!&;W(@96%C:"!E;&5M
M96YT(&EN('1H:7, at 87)R87D@=&AE(&9U;F-T:6]N('=I;&P@<W5B<W1I='5T
M92!A(&UA<FME<B!I;B!T:&4 at 8V]N=&5N="!S=')E86T@=VET:"!T:&4 at 8V]N
M=&5N="X*( D@*B! <&%R86T)<W1R:6YG"0E!('=R87 @=F%L=64 at +2!;<&%R
M=" Q72!\(%MP87)T(#)=("T at 9F]R('1H92!M87)K97)S(&)E9F]R92!S=6)S
M=&ET=71I;VX*+0D@*B! <&%R86T)8F]O;&5A;@D)268@<V5T+"!A;&P@;6%R
M:V5R('-T<FEN9R!S=6)S=&ET=71I;VX@:7, at 9&]N92!W:71H('5P<&5R+6-A
M<V4@;6%R:V5R<RX**R @(" @*B! <&%R86T@("!B;V]L96%N(" @("!)9B!S
M970L(&%L;"!M87)K97(@<W1R:6YG('-U8G-T:71U=&EO;B!I<R!D;VYE('=I
M=&@@=7!P97(M8V%S92!M87)K97)S+ at HK"2 J($!P87)A;0EB;V]L96%N"0E)
M9B!S970L(&%L;"!U;G5S960@;6%R:V5R(&%R92!D96QE=&5D+ at H@"2 J($!R
M971U<FX)<W1R:6YG"0E4:&4@<')O8V5S<V5D(&]U='!U="!S=')E86T*( D@
M*B! <V5E('-U8G-T:71U=&5-87)K97(H*2P@<W5B<W1I='5T94UA<FME<DEN
M3V)J96-T*"DL(%1%35!,051%*"D*( D@*B\*+0EP=6)L:6, at 9G5N8W1I;VX@
M<W5B<W1I='5T94UA<FME<D%R<F%Y*"1C;VYT96YT+" D;6%R:T-O;G1E;G1!
M<G)A>2P@)'=R87 ])R<L("1U<'!E<F-A<V4],"D)>PHM"0EI9B H:7-?87)R
M87DH)&UA<FM#;VYT96YT07)R87DI*0E["BL)<'5B;&EC(&9U;F-T:6]N('-U
M8G-T:71U=&5-87)K97)!<G)A>2 at D8V]N=&5N="P@)&UA<FM#;VYT96YT07)R
M87DL("1W<F%P/2<G+" D=7!P97)C87-E/3 L("1D96QE=&55;G5S960],"D)
M>PHK"0EI9B H:7-?87)R87DH)&UA<FM#;VYT96YT07)R87DI*2!["B )"0DD
M=W)A<$%R<B ]('0S;&EB7V1I=CHZ=')I;45X<&QO9&4H)WPG+"1W<F%P*3L*
M+0D)"69O<F5A8V at H)&UA<FM#;VYT96YT07)R87D at 87,@)&UA<FME<B ]/B D
M;6%R:T-O;G1E;G0I"7L**PD)"69O<F5A8V at H)&UA<FM#;VYT96YT07)R87D@
M87,@)&UA<FME<B ]/B D;6%R:T-O;G1E;G0I('L*( D)"0EI9B at D=7!P97)C
M87-E*0E["BT)"0D)"21M87)K97(@/2!S=')T;W5P<&5R*"1M87)K97(I.PHK
M"0D)"0DD;6%R:V5R(#T@<W1R='(H)&UA<FME<BPG86)C9&5F9VAI:FML;6YO
M<'%R<W1U=G=X>7HG+"=!0D-$149'2$E*2TQ-3D]045)35%565UA96B<I.PH@
M"0D)"7T*( D)"0EI9BAC;W5N="@D=W)A<$%R<BD^,"D@>PH@"0D)"0DD;6%R
M:V5R(#T@)'=R87!!<G);,%TN)&UA<FME<BXD=W)A<$%R<ELQ73L*( D)"0E]
M"B )"0D))&-O;G1E;G0@/2!S=')?<F5P;&%C92 at D;6%R:V5R+" D;6%R:T-O
M;G1E;G0L("1C;VYT96YT*3L*( D)"7T**PD)"0HK"0D):68@*"1D96QE=&55
M;G5S960I('L**PD)"0DD8V]N=&5N=" ]('!R96=?<F5P;&%C92 at G+R<N<')E
M9U]Q=6]T92 at D=W)A<$%R<ELP72DN)RA;02U:,"TY7RU\72HI)RYP<F5G7W%U
M;W1E*"1W<F%P07)R6S%=*2XG+VES)RP@)R<L("1C;VYT96YT*3L**PD)"7T*
M( D)?0HK"B )"7)E='5R;B D8V]N=&5N=#L*( E]"B *+0D**PH@"2\O("HJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHG"B )
M+R\@0T]062!&4D]-(&-L87-S+G1S;&EB7V-O;G1E;G0N<&AP.B O($5.1 H@
M"2\O("HJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
$*BHG"@``
`
end



More information about the TYPO3-team-core mailing list