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 Quote Link to comment 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 Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.