Loading...


Ask A Question?

 
 
 
 
 
 
Posted in Computers & Tech / Programming / Programming General / BASIC / Visual Basic (.NET)
Author: Jimmy89 Total-Replies: 4


Hi All, I am using Regular Expressions in VB.NET to find illegal filename characters in a string. The user enters and name, and it then saves the file with that name. I just need to make sure that the filename doesn't contain illegal filename characters. The characters are / \ : ? " < > | (is there any...

Wed Feb 20, 2008    Reply    New Discussion   
 

Posted in Computers & Tech / Programming / Programming General
Author: starscream Total-Replies: 1


I know that regex are language agnostic because of the wide areas where it can be used. I have used regeex in ruby on rails, python and now in php. I have found it very handy. I think like string operations they are also fast. Most of the string operations and regex are common. You just need regex in araes where string cant do the...

Wed Feb 15, 2012    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Programming General / C# .NET
Author: turbopowerdmaxsteel Total-Replies: 8


I have a hierarchy of functions represented as something like:- @BeforeText(@AfterText(@ReadURL('http://www.quotationspage.com/quote/1.html')@,'<dt>',True)@,'</dt>',True)@ Each of the functions follow the format @FunctionName(<ParamString>)@. The ParamString itself can be composed of a...

Mon Mar 24, 2008    Reply    New Discussion   
 

Posted in Computers & Tech / Programming
Author: FirefoxRocks Total-Replies: 9


In PHP and many other programming languages, I have heard of this powerful syntax called RegEx, or regular expressions. It allows you to find strings that match a certain pattern. I had to use a regex expression to search for a specific string of text within a block of text once, and someone told me to use a regular expression....

Sat Aug 2, 2008    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Scripting / PHP
Author: vujsa Total-Replies: 11


So I'm trying to learn how to pull useful content from a web page. Here's what I got so far:

CODE

<?php $filename = "http://www.forum500.com"; $html = file_get_contents($filename); /* **************************************************************** */ /*        ...

Wed Apr 13, 2005    Reply    New Discussion   
 
Posted in Astahost / Hosted Members Support / cPanel
Author: vujsa Total-Replies: 0


I'm so irritated with the amount of spam I get on the email accounts I have hosted at AstaHost. It isn't the servers fault that I get so much junk mail! It wouldn't be so bad but my junk mail filter on my home system doesn't scan IMAP accounts which I use since my email client won't separate POP3 accounts...

Mon Feb 18, 2008    Reply    New Discussion   
 

Posted in Computers & Tech / Programming / Programming General / Design Practises, Patterns &am..
Author: dserban Total-Replies: 1


Well, the title says it all and I really don't have anything to add to that, except to say that this is a really, really powerful technology that is very pervasive in many programming as well as scripting languages and as well in mainstream database products. I really recommend you put in the time and effort to learn regular...

Thu Aug 16, 2007    Reply    New Discussion   
 
Posted in Computers & Tech / Networking
Author: pyost Total-Replies: 0


I am not particularly good when it comes to regular expressions and forming a .htaccess file, so I knew I would run into a problem sooner or later. At the moment, I am developing a simple PHP script for a game similar to NotPr0n. As I want it to be user-friendly, I have decided to use "rewritten" URLs instead of ...

Fri Aug 3, 2007    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Scripting / Perl & CGI
Author: mastercomputers Total-Replies: 14


I am just wondering what you would do to validate against an email address, basically I want to know what Regular Expression you would use to check for a valid format. I've seen so many different ways of doing it, some I can definitely say can produce wrong results, but I'm not saying mine is perfect either, basically I...

Sat Nov 27, 2004    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Scripting / PHP
Author: dserban Total-Replies: 3


You could just use regular expressions to blindly perform the preg_replace() you want without performing the check first. As with other topics, I will give you an example of how to do this in a cygwin bash shell and leave it up to you to understand the principle behind the example and adapt it to your specific situation.

CODE

# # echo...

Sat Aug 18, 2007    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Scripting / PHP
Author: Quatrux Total-Replies: 1


It can be done in several ways, but as for your problem, I think you could just use a regular expression, even though I like to avoid them, I never got into regular expressions, just found them or asked for them on IRC channels, you would need to use preg_replace(); read on it on the php manual

Sun Jun 24, 2007    Reply    New Discussion   
 
Posted in Computers & Tech / Databases
Author: ruben Total-Replies: 6


Hi, maybe one of you already came across this, so I ask. I'll continue searching on. I've got two vocable trainers, one is Windows-native, the other one is on the web. While I can't control the output of the Windows-thing (so I can't export them to a *csv or something), I can write an import script. But since...

Fri Mar 10, 2006    Reply    New Discussion   
 
Posted in General Discussion / Computer Talk
Author: Feung Total-Replies: 0


http://www.google.com/codesearch Google Code Search helps you find function definitions and sample code by giving you one place to search publicly accessible source code hosted on the Internet. With Google Code Search, you can: * Use regular expressions to search more precisely * Restrict your search by language,...

Thu Nov 29, 2007    Reply    New Discussion   
 
Posted in Computers & Tech / Programming / Scripting / PHP
Author: turbopowerdmaxsteel Total-Replies: 2


You are trying to remove some fixed portion of the text read from the remote file, correct? There's no use for a regular expression over there. Besides, the pattern you are specifying as the first parameter for the preg_replace function is not much of a regular expression either. Just use substr_replace function, that would do...

Sat Jan 5, 2008    Reply    New Discussion   
 
Posted in Computers & Tech / Internet and Websites
Author: mastercomputers Total-Replies: 8


This was the code taken from that link:

CODE

if(eregi('MSIE', $_SERVER['HTTP_USER_AGENT'])){ echo '<div> Bla Bla Bla your text explaining why people should switch to Firefox. </div>'; }
This is how I would write it:

CODE

...

Fri Feb 17, 2006    Reply    New Discussion   
 

Ask a Question (w/o registration) to get Quick Answers!


astaHost