Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Puzzler183

Regex Problems

This topic is 5464 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After tinkering for quite a while, I''m stuck. PHP regex is different from what I''ve read about and used in Dev Studio. Basically, I want to match somethign like "%%x and %%y". I''ve tried: <\\0>and<\\1> \<\\0\>and\<\\1\> <\\0> and <\\1> and many others, all of which give errors... Anyway, I''m really stuck as to how to show the beginning and end of a word, and the help files only confused me further. So can anyone give me a tip on how to match the thing above?

Share this post


Link to post
Share on other sites
Advertisement
If you are using preg_match in PHP, the regular expression syntax is (mostly) Perl compatible. I'm not sure what it is you are trying to do; what do you mean by "match something like '%%x and %%y'"? Some sample input would help.

[edited by - spock on October 6, 2003 10:14:23 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!