Jump to content


Photo

What does it mean?


  • Please log in to reply
2 replies to this topic

#1 yanisdon

yanisdon
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 14 August 2006 - 01:26 AM

Hi,
Can anybody help me with working out what this expression actually does. Am not very familiar with reg expr.
$expression =  "/\'{1,}\"\.{2,}/";


Thanks
Jan

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 14 August 2006 - 12:09 PM

I'm not an expert either in this field but what I think it is doing is this
/ - this is the stating delimiter every reqular expression requires a starting/ending delimiter
\'{1,} - this says find 1 or more instance of '
\"\.{2,} - this says find 2 or more instances of ".
/ - this is the ending delimiter

#3 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 14 August 2006 - 01:09 PM

Almost.

/ # 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

Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users