have you tried the perl regexp syntax? I've found that javascript has used that example...and PHP has also been a language that borrows from c and perl. My guess is that if it were implemented...it would be in the perl syntax.
tack On Sun, 28 Apr 2002, Gregg Giles wrote: > I'm developing a PHP script that grabs the contents of a web page, > strips out all the tags, parses the contents for information I want, and > puts that information into variables I can manipulate. There are certain > keywords that remain fixed, but the associated values with each are > dynamic. I'm using sscanf() to try and find the keyword and put the > associated value into a variable. However, I need to use a wildcard to > find what I want, but I don't know what the wildcard syntax is. It needs > to accommodate all possible characters, numbers, punctuation, etc. > > Here's a simplified example: > > <?php > $string="My favorite color is: RED My dog's name is: Rex My favorite > food is: bacon My favorite number is: 665 more junk goes here"; > $n = sscanf($string, "My favorite color is: %s", &$color); > $n = sscanf($string, "My dog's name is: %s", &$dog); > $n = sscanf($string, "My favorite food is: %s", &$food); > $n = sscanf($string, "My favorite number is: %d", &$number); > ?> > > I don't think word/character position string functions would work in my > actual code. Anyone? > -- ------------------------------------------------ Article 19: United Nations Universal Declaration of Human Rights: http://www.unhchr.ch/udhr/lang/eng.htm "Everyone has the right to freedom of opinion and expression; this right includes freedom to hold opinions without interference and to seek, receive and impart information and ideas through any media and regardless of frontiers." _______________________________________________ Bits mailing list [EMAIL PROTECTED] http://www.sugoi.org/mailman/listinfo/bits
