Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more
You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"
http://www.google.com http://www.yahoo.com http://www.scirra.com
So you can use regex!
with a pattern like "@www\.(.*)\.com@"
@ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php
\. is escaping full stop
. is match any character
* is match 0 or more any characters
You can test and learn with this tool: http://regexpal.com/
In the top box, enter this:
www\.(.*)\.com[/code:2qdnas4l]
In the second box, enter this:
[code:2qdnas4l]
http://www.google.com
http://www.yahoo.com
http://www.scirra.com
[/code:2qdnas4l]
but...can you please make a screen shot for me?
i know how to use Regex now but not in C2
this not working
RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
[/code:2qdnas4l]
<img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes"> <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes"> <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">
Thankyou sososooss much again