NYCPHP Meetup

[nycphp-talk] How can PHP extract a pattern from a string into another string?

Phil Powell soazine at erols.com
Thu Aug 7 12:16:20 EDT 2003


Once again I have to go with my native "language", TCL:

regexp {^a=([^\n]+)\n$} $stuff {} myExtractedStuff

How can PHP do the same thing? I want to extract a specific pattern match from a body into another variable.  What does that in PHP, the manual does not make it clear to me?

Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030807/68f39b94/attachment.html>


More information about the talk mailing list