I hate Regex |
[eluser]TheFuzzy0ne[/eluser]
preg_match() does exactly this. http://uk.php.net/manual/en/function.preg-match.php There are other functions that server a similar function, such as eregi(), and ereg(). Use brackets to capture the text you want. If you're serious about learning Regular Expressions, you can check out the great tutorials [url="http://www.regular-expressions.info/"]here[/url]. Just bear in mind that there are different types of Regular Expressions that use different syntaxes, for example, preg_match() uses Perl regular Expressions. Code: <?php |
Messages In This Thread |
I hate Regex - by El Forum - 01-08-2009, 10:49 AM
I hate Regex - by El Forum - 01-08-2009, 11:03 AM
I hate Regex - by El Forum - 01-08-2009, 11:03 AM
I hate Regex - by El Forum - 01-08-2009, 11:24 AM
I hate Regex - by El Forum - 01-08-2009, 11:27 AM
I hate Regex - by El Forum - 01-08-2009, 11:35 AM
I hate Regex - by El Forum - 01-08-2009, 11:36 AM
I hate Regex - by El Forum - 01-08-2009, 11:41 AM
I hate Regex - by El Forum - 01-08-2009, 12:12 PM
I hate Regex - by El Forum - 01-08-2009, 01:26 PM
I hate Regex - by El Forum - 01-08-2009, 02:42 PM
I hate Regex - by El Forum - 01-08-2009, 02:50 PM
I hate Regex - by El Forum - 01-08-2009, 03:07 PM
I hate Regex - by El Forum - 01-08-2009, 03:20 PM
|