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

Phil Powell soazine at
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the talk mailing list