sarathi Posted July 29, 2009 Share Posted July 29, 2009 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. Link to comment https://forums.phpfreaks.com/topic/168022-if-someone-could-explain-what-usi-means-at-the-end-of-a-regex-for-bbcode/ Share on other sites More sharing options...
fooDigi Posted July 29, 2009 Share Posted July 29, 2009 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) Link to comment https://forums.phpfreaks.com/topic/168022-if-someone-could-explain-what-usi-means-at-the-end-of-a-regex-for-bbcode/#findComment-886218 Share on other sites More sharing options...
sarathi Posted July 29, 2009 Author Share Posted July 29, 2009 thanks! Link to comment https://forums.phpfreaks.com/topic/168022-if-someone-could-explain-what-usi-means-at-the-end-of-a-regex-for-bbcode/#findComment-886234 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.