Regular expression help please

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

2 replies · 311 views · started 16 years ago · 1 min read

Guest #1

Hello im looking for a regular expression that will find anything between

<body> and please help
something else Fellow · 2,296 posts #2

$data = preg_replace('/<body>(.*?)/is',$1,$data);

Guest #3

omw thanks its working so well could you please explain what the /is is doing i understand the rest

Added after 49 minutes:

nvm thanks alot i figured it out...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close