Regex

  • Thread starter Thread starter Shabam
  • Start date Start date
S

Shabam

Can someone give me a quick summary of what this does?

static $S = array('/javascript:/si', '/about:/si', '/vbscript:/si',
'/&(?![a-z0-9#]+;)/si');
static $R = array('javascript:', 'about:', 'vbscript:', '&');
$C = preg_replace($S, $R, $C);

What does "/si" look for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top