Jump to content

If someone could explain what /Usi means at the end of a regex for bbcode


sarathi

Recommended Posts

I found this little ending 'Usi' for my regex code:

 

'/(\[b\])(.+)(\[\/b\])/Usi',

 

It fixed my problem where it connects the closest and , where it used to connect the tags which were furthest appart. I was just wondering if someone could explain what it actually does?

 

Thanks.

these are regex modifiers... for example, the "i" means the regex will be case Insensitive, and will match both UPPER and lower case characters... the "s" means it will also match newlines. php.net has a list of them (http://us2.php.net/manual/en/reference.pcre.pattern.modifiers.php)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.