Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » Regex Code
Showing page 1 of 2 (12 total posts)
  • Capitalize the first letter of every word in a paragraph.

    Write an HTML form with a textarea on it. Write a CGI to accept the input of this form that capitalizes the first letter of every word and prints it back to the screen. The html form i can do and the perl script, but  the regular expression the code to capitalize the first letter of every word example    $value=~ ...
    Posted to Construction Advice (Forum) by Mark Schmidt on August 26, 2009
  • Regex for string not having \ / and .(dot) and length must be 60

    Hi, I need a help on creating regular expression for string length must be 60 and it should not contain \ / and .(dot) I have two regular expressions for validating separately for above condtion. I need it in single expression. Expression are   [^\\/\.]+$    for checking \ / .(dot)^.{60,60}$    for fixed ...
    Posted to Construction Advice (Forum) by bussureddy82 on June 3, 2009
  • help with lookbehind

    Hi  I am currently running sun java web proxy 4.0.9, which has the ability to filter out undesireable websites using regular expressions. this has been working fine for us until we needed to add an exception.  we currently use the regex .*://.*\.*mail.*/.*  which blocks all websites that contain the word mail, we use this to ...
    Posted to Construction Advice (Forum) by stalbot on March 27, 2009
  • [PHP] preg_match_all() question

    I'm working with PHP on Apache on Windows... I want to look for a string that looks like in the 4 examples below (it can either have 1 video, or multiple videos separated by a colon ":"). $text  = "{flv=video_a1}"; $text .= "{flv=video_b1:video_b2}"; $text .= ...
    Posted to Construction Advice (Forum) by LovE-RicH on December 15, 2008
  • regex to validate username

    Hi, i've been searching frenzy for a regex that validates a username that may contain a-z A-Z 0-9 . - and _ in ASP.NET The catch is that this username is to be part of the url so the username may not contain _.- in the begining of the name or in the end of the name, and _.- may be typed together like e.x cool._steve, greate-_-pete and so ...
    Posted to Construction Advice (Forum) by gralov on August 11, 2008
  • Find/Replace but ignore HTML tags

    Hi, I've got a javascript/regex scenario I was hoping to find a solution to.  Here’s the situation  We have been given the string "The quick brown fox jumped over the lazy sleeping dog." We want to replace it with "The large yellow tiger jumped over the lazy sleeping cat".  Normally this would ...
    Posted to Construction Advice (Forum) by beng on May 25, 2008
  • i need to recognize two words and one letter in a middle from input how to do it with regex ?

    Hello,  Thanks for all help in advance. I'm coding with PHP and i need to recognize 2 words and one letter in a middle from input. I mean i have a variable with string and i know what that string must be formated like 2 words and one letter in a middle. "hello8 g mike213" this is correct string. no "hello~8 8 ...
    Posted to Construction Advice (Forum) by codex on May 15, 2008
  • Need an expression to find all text between numeric identifiers

    Hello, I am using C# in Visual Studio 2008.  I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document.  The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis  //book ...
    Posted to Construction Advice (Forum) by RandyHJ on May 13, 2008
  • flexible url rewriting for custom php cms

    Hi, I've been working on a custom CMS solution and I'm trying to get generic url matching working in .htaccess. This is my attempt.. if the file or directory doesn't exist then rewrite RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ...
    Posted to Construction Advice (Forum) by gwizz on May 13, 2008
  • Pretty URLs not working

    Hello, I'm totally new to using RegEx, but was able to successfully implement some "pretty urls" rewriting (http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html) using RegEx.  But on another section of my website, eh...not so successful.   I've got a section on my site that connects to a database ...
    Posted to Construction Advice (Forum) by calrockx on April 28, 2008
1 2 Next >