yanisdon Posted August 14, 2006 Share Posted August 14, 2006 Hi,Can anybody help me with working out what this expression actually does. Am not very familiar with reg expr.[code]$expression = "/\'{1,}\"\.{2,}/";[/code]Thanks Jan Link to comment https://forums.phpfreaks.com/topic/17457-what-does-it-mean/ Share on other sites More sharing options...
wildteen88 Posted August 14, 2006 Share Posted August 14, 2006 I'm not an expert either in this field but what I think it is doing is this[b]/[/b] - this is the stating delimiter every reqular expression requires a starting/ending delimiter[b]\'{1,}[/b] - this says find 1 or more instance of [b]'[/b][b]\"\.{2,}[/b] - this says find 2 or more instances of [b]".[/b][b]/[/b] - this is the ending delimiter Link to comment https://forums.phpfreaks.com/topic/17457-what-does-it-mean/#findComment-74430 Share on other sites More sharing options...
effigy Posted August 14, 2006 Share Posted August 14, 2006 Almost.[code]/ # Open delimiter\'{1,} # One or more instances of '. {1,} is better written as +\" # A double quote\.{2,} # Two or more instances of any character except a new line./ # Close delimiter[/code] Link to comment https://forums.phpfreaks.com/topic/17457-what-does-it-mean/#findComment-74454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.