I have a SQL Server full-text index and I'm attempting to search for phrases using CONTAINS such as /cap contained within the data. However, SQL Server seems to strip off the / and only return results ...

There are forward and backward slash in the response. how can i get it normal? I have tried using replaceall method. However i am still getting the same response url with backslash abd forward slash ...

I'm trying to copy dir1 to dir2. Dir1 contains sub-folders and files. In the moment of copy I'm creating url like this C:/dirA/dir1 and C:/dirB/dir2. As you see all slashes are forwarded. When run i ...

A simple question usually has a simple answer but I am struggling to find it. Can someone please explain why the following isn't matching?
string = 'HTTP/NONE'
if string is 'HTTP/NONE': print 'match'
...

I'm using someone else's code (licensed) on two different machines. On one machine, the Application.ExecutablePath returns the result the programmer must have expected, on the other it does not. Both ...

Here is the code:
$string = "/My-Item-Here-p/sb-p36abbg.htm";
$str = preg_replace('/^.*-p\s*/', '', $string);
$str = substr($str, 1);
echo $str;
This spits out 6abbg.htm, I would like to have it to ...

I'm working on a script to make setting up a Statamic site more efficient. The problem I'm running into is that the variable I'm using to replace a string in a file has unescaped forward slashes and ...

I am in an intro to Java class and we have to make a numerology program. i have everything except the data validation done. We have to validate that the date put in was put correctly, including the ...

I need a little help on this one.
I'm in the process of making a php page that collects a query string, tests it against a database for matches, and then redirects the user to a different section of ...

I am using a history.js plugin (http://tkyk.github.com/jquery-history-plugin/) and would like to know how I can implement a / type of URL. Right now my code is:
//Check if url hash value exists (for ...

I have a simple html website with over 50 html pages. From statistics-script I sometime see users on a page like xyz.html/ (which redirect to 404) instead of xyz.html. I know a simple way is to put a ...

Whenever I work with PHP (often) I typically work on a Windows box, however I (try to) develop platform agnostic applications; one major point of issue being the use of directory separators.
As many ...

Trying to use preg_replace to find strings that begin and end with a forward-slash, for example "/Harry/". (has to be preg_replace)
I also need to ignore case and ensure it is an individual word. So ...

I have been working on an anagram solver in Python 2.7 and came across a curiosity that I haven't been able to find an explanation for. The program reads from a file which contains a list of anagrams ...

I'm using a htmlhelper where i give table data id's based on day and month values which are retrieved. The problem is the id is not recognized in the format it is. / seems to not be picked up yet when ...

I have a site that treats "/" and "%2F" in the path portion (not the query string) of a URL differently. Is this a bad thing to do according to either the RFC or the real world?
I ask because I keep ...