String spliting

data = “<input type=“password” value=“hoax”>”

spl = data.split("“password”")

The first example works exactly like it should, but when i’m loading the
same line from file it doesn’t, even though they are both strings.

Here is the second example

fp =‘file’,‘r’).read

spl = data.split(/\“password”")

How come i can’t use the first approach? Is there really difference
between string and a string?

On Sep 26, 2013, at 7:04, Michael J. [email protected] wrote:

spl = data.split(/\“password”")

\ -> \

and add / to mark the end of the RegEx

PS: dont use‘file’,‘r’).read

because it holds the FilePointer Open, use‘file’)