That would work if it was in the query string. He's trying to URL
encode a query string as part of a larger string... not the query
string he's receiving. But honestly it shouldn't be necessary, since
most (all?) clients will handle that for you.
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL
I was actually just looking for a regex solution to parsing up many
lines of text, some of which contain urls. And if those url's have a
space on the query string to replace those spaces on the query string
with the + character.
I could use CF but, was trying to just get the regex. Possbly using
Don't need the lookarounds
Use this regex and save $1 and $3 /(a.*?http://([^/]+/)+[^?]+?)([^=]
+=\S+\s+\S?)/gx
Then use this on $2 to replace the spaces s/\s/+/gx.
Then push $1 and $2 back together to get your whole string.
That's the perl way...
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL
FWIW, this is an untested regex from off the top of my head...
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
[T]he people can always be brought to the bidding of the leaders.
This is easy. All you have to do is to tell them they are being
attacked, and denounce the pacifists for lack of
Good luck, the regex might need a bit of tweaking. Also, I didn't
anchor it to line beginnings/endings, since I don't know the data
format well enough to know if that is an issue for you.
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Here in America everything is bought and sold, you
:[EMAIL PROTECTED] On Behalf Of Dean H. Saxe
Sent: Tuesday, June 05, 2007 1:15 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] regex help
FWIW, this is an untested regex from off the top of my head...
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
[T]he people can always be brought
, 2007 1:15 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] regex help
FWIW, this is an untested regex from off the top of my head...
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
[T]he people can always be brought to the bidding of the leaders.
This is easy. All you have to do
Not if his string is case-sensitive, which it appears to be.
-dhs
Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
[T]he people can always be brought to the bidding of the leaders.
This is easy. All you have to do is to tell them they are being
attacked, and denounce the pacifists for lack of
Steven beat me to that one. I was just typing that. Also, it depends on how you implement your form as well. If you use HTML forms and non-flash form with regex validation, then you have _javascript_ that can be turned off. Now if you implement a flash form, I believe the validation stays internal
Your regex is:menu[0-9]+[^;]+That gets from menu through the character preceding the semicolon.-dhs Dean H. Saxe, CEH[EMAIL PROTECTED]"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is
(\/\/)?[\s]+menu[0-9]+.addItem[^;]+This captured the complete line to include the comments and optional space in between the // to the menu.addItem method.All you need to do is make sure not to use the strings that start with //.
TeddyThis will get any addItem lines. Just make sure to exclude the
11 matches
Mail list logo