[Typo3] [OT] RegEx

Peter Bartels peterbartels at gmail.com
Mon Oct 17 14:37:46 CEST 2005


I guess this should work (please let me know):
it replaces between quotes with 10

$str = '<begin of test width="123" endofteststring>';
$str preg_replace('/width=\".+\"/','width="10"',$str);

2005/10/17, Carlos Rodriguez <carod at nospam.org>:
> Hello,
>
> any RegEx Pros outta here? I think so ;-)
>
> I just need anregex for replacing a string like width="123".
> But I don't care what attribute width has. If it is 123 or 87645 or 4 or
> 23 thas equal.
>
> So any hints? thanks!
>
> :-)
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



More information about the TYPO3-english mailing list