Re: [ACFUG Discuss] regex help

2007-06-05 Thread Dean H. Saxe
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 PROTECTED]
What is objectionable, what is dangerous about extremists is not  
that they are extreme, but that they are intolerant.

-- Robert F. Kennedy, 1964


On Jun 5, 2007, at 12:46 PM, Jeff Howard wrote:

I used to have to do regular expression stuff a lot (and in a  
language called Vortex/Texis web-script) but haven't lately.


My best guess is:

REReplace (CGI.Query_String,  , +,ALL)

 or if it is URLEncoded

REReplace(URLDecode(CGI.Query_String),  , +,ALL)

think that'll do it but haven't used much regular expression in CF.

On 6/5/07, Steven Ross [EMAIL PROTECTED] wrote:
in this string:

pb15) a href=http://blah.com?search=Some Lingering Suspicion
target=_blankA Lingering Suspicion/a/b/p

i want to search for the spaces inside:

?search=Some Lingering Suspicion

and replace those spaces with + so it should end up looking like this:

?search=Some+Lingering+Suspicion

Can this be done?

thanks,

Steven



--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-




Re: [ACFUG Discuss] regex help

2007-06-05 Thread Steven Ross

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 a
lookahead or lookbehind assertion.

-Steven

On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:

do you plan to save the complete url in a variable or just search keyword in
a variable?  For example varUrl = a href=http://blah.com?search=Some
Lingering Suspicion target=_blankA Lingering Suspicion/a
or varUrl = Some Lingering Suspicion

Please clarify.

Ajas.


On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:
 in this string:

 pb15) a href= http://blah.com?search=Some Lingering Suspicion
 target=_blankA Lingering Suspicion/a/b/p

 i want to search for the spaces inside:

 ?search=

 and replace those spaces with + so it should end up looking like this:

 ?search=Some+Lingering+Suspicion

 Can this be done?

 thanks,

 Steven



 --
 Steven Ross
 web application  interface developer
 http://www.zerium.com
 [mobile] 404-488-4364
 [fax] 267-482-4364



-
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com

-







--
Ajas Mohammed /
http://ajashadi.blogspot.com
No matter what, find a way. Because thats what winners do.
-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] regex help

2007-06-05 Thread Dean H. Saxe

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 PROTECTED]
What is objectionable, what is dangerous about extremists is not  
that they are extreme, but that they are intolerant.

-- Robert F. Kennedy, 1964


On Jun 5, 2007, at 12:58 PM, Steven Ross wrote:


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 a
lookahead or lookbehind assertion.

-Steven

On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:
do you plan to save the complete url in a variable or just search  
keyword in
a variable?  For example varUrl = a href=http://blah.com? 
search=Some

Lingering Suspicion target=_blankA Lingering Suspicion/a
or varUrl = Some Lingering Suspicion

Please clarify.

Ajas.


On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:
 in this string:

 pb15) a href= http://blah.com?search=Some Lingering  
Suspicion

 target=_blankA Lingering Suspicion/a/b/p

 i want to search for the spaces inside:

 ?search=

 and replace those spaces with + so it should end up looking like  
this:


 ?search=Some+Lingering+Suspicion

 Can this be done?

 thanks,

 Steven



 --
 Steven Ross
 web application  interface developer
 http://www.zerium.com
 [mobile] 404-488-4364
 [fax] 267-482-4364



-
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com

-







--
Ajas Mohammed /
http://ajashadi.blogspot.com
No matter what, find a way. Because thats what winners do.
-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ http:// 
www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] regex help

2007-06-05 Thread Dean H. Saxe

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 patriotism and  
exposing the country to danger. It works the same in every country.

--Hermann Goering, Hitler's Reich-Marshall at the Nuremberg Trials


On Jun 5, 2007, at 1:12 PM, Dean H. Saxe wrote:


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 PROTECTED]
What is objectionable, what is dangerous about extremists is not  
that they are extreme, but that they are intolerant.

-- Robert F. Kennedy, 1964


On Jun 5, 2007, at 12:58 PM, Steven Ross wrote:


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 a
lookahead or lookbehind assertion.

-Steven

On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:
do you plan to save the complete url in a variable or just search  
keyword in
a variable?  For example varUrl = a href=http://blah.com? 
search=Some

Lingering Suspicion target=_blankA Lingering Suspicion/a
or varUrl = Some Lingering Suspicion

Please clarify.

Ajas.


On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:
 in this string:

 pb15) a href= http://blah.com?search=Some Lingering  
Suspicion

 target=_blankA Lingering Suspicion/a/b/p

 i want to search for the spaces inside:

 ?search=

 and replace those spaces with + so it should end up looking  
like this:


 ?search=Some+Lingering+Suspicion

 Can this be done?

 thanks,

 Steven



 --
 Steven Ross
 web application  interface developer
 http://www.zerium.com
 [mobile] 404-488-4364
 [fax] 267-482-4364



-
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com

-







--
Ajas Mohammed /
http://ajashadi.blogspot.com
No matter what, find a way. Because thats what winners do.
-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ http:// 
www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @http:// 
www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] regex help

2007-06-05 Thread Dean H. Saxe
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 can get anything  
for little bits of gold.
We'll rape the earth and ruin the air, cut down every tree from here  
to there.

-- Donna The Buffalo America


On Jun 5, 2007, at 1:26 PM, Steven Ross wrote:


Thanks dean, I'll give this a shot.

On 6/5/07, Dean H. Saxe [EMAIL PROTECTED] wrote:

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 PROTECTED]
What is objectionable, what is dangerous about extremists is not
that they are extreme, but that they are intolerant.
 -- Robert F. Kennedy, 1964


On Jun 5, 2007, at 12:58 PM, Steven Ross wrote:

 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 a

 lookahead or lookbehind assertion.

 -Steven

 On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:
 do you plan to save the complete url in a variable or just search
 keyword in
 a variable?  For example varUrl = a href=http://blah.com?
 search=Some
 Lingering Suspicion target=_blankA Lingering Suspicion/a
 or varUrl = Some Lingering Suspicion

 Please clarify.

 Ajas.


 On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:
  in this string:
 
  pb15) a href= http://blah.com?search=Some Lingering
 Suspicion
  target=_blankA Lingering Suspicion/a/b/p
 
  i want to search for the spaces inside:
 
  ?search=
 
  and replace those spaces with + so it should end up looking like
 this:
 
  ?search=Some+Lingering+Suspicion
 
  Can this be done?
 
  thanks,
 
  Steven
 
 
 
  --
  Steven Ross
  web application  interface developer
  http://www.zerium.com
  [mobile] 404-488-4364
  [fax] 267-482-4364
 
 
 
 -
  Annual Sponsor FigLeaf Software - http://www.figleaf.com
 
  To unsubscribe from this list, manage your profile @
  http://www.acfug.org?fa=login.edituserform
 
  For more info, see http://www.acfug.org/mailinglists
  Archive @
 http://www.mail-archive.com/discussion%40acfug.org/
  List hosted by http://www.fusionlink.com
 
 -
 
 
 
 



 --
 Ajas Mohammed /
 http://ajashadi.blogspot.com
 No matter what, find a way. Because thats what winners do.
 -
 Annual Sponsor - Figleaf Software

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -


 --
 Steven Ross
 web application  interface developer
 http://www.zerium.com
 [mobile] 404-488-4364
 [fax] 267-482-4364


 -
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @ http://
 www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ http:// 
www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - 

Re: [ACFUG Discuss] regex help

2007-06-05 Thread Shifang (Frank) Sun

I use this: http://regexlib.com/RETester.aspx

On 6/5/07, John Mason [EMAIL PROTECTED] wrote:

Is there a good regex testing tool out there. I tend to test straight off my
cf code which is cumbersome at times.

John
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[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 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 patriotism and exposing the country
to danger. It works the same in every country.
 --Hermann Goering, Hitler's Reich-Marshall at the Nuremberg Trials


On Jun 5, 2007, at 1:12 PM, Dean H. Saxe wrote:

 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 PROTECTED]
 What is objectionable, what is dangerous about extremists is not that
 they are extreme, but that they are intolerant.
 -- Robert F. Kennedy, 1964


 On Jun 5, 2007, at 12:58 PM, Steven Ross wrote:

 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 a
 lookahead or lookbehind assertion.

 -Steven

 On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:
 do you plan to save the complete url in a variable or just search
 keyword in a variable?  For example varUrl = a
 href=http://blah.com?
 search=Some
 Lingering Suspicion target=_blankA Lingering Suspicion/a or
 varUrl = Some Lingering Suspicion

 Please clarify.

 Ajas.


 On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:
  in this string:
 
  pb15) a href= http://blah.com?search=Some Lingering
 Suspicion
  target=_blankA Lingering Suspicion/a/b/p
 
  i want to search for the spaces inside:
 
  ?search=
 
  and replace those spaces with + so it should end up looking
 like this:
 
  ?search=Some+Lingering+Suspicion
 
  Can this be done?
 
  thanks,
 
  Steven
 
 
 
  --
  Steven Ross
  web application  interface developer http://www.zerium.com
  [mobile] 404-488-4364 [fax] 267-482-4364
 
 
 
 -
  Annual Sponsor FigLeaf Software - http://www.figleaf.com
 
  To unsubscribe from this list, manage your profile @
  http://www.acfug.org?fa=login.edituserform
 
  For more info, see http://www.acfug.org/mailinglists Archive @
 http://www.mail-archive.com/discussion%40acfug.org/
  List hosted by http://www.fusionlink.com
 
 -
 
 
 
 



 --
 Ajas Mohammed /
 http://ajashadi.blogspot.com
 No matter what, find a way. Because thats what winners do.
 -
 Annual Sponsor - Figleaf Software

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -


 --
 Steven Ross
 web application  interface developer
 http://www.zerium.com
 [mobile] 404-488-4364
 [fax] 267-482-4364


 -
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @ http://
 www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






 -
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @http://
 www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion

Re: [ACFUG Discuss] regex help

2007-06-05 Thread Dean H. Saxe

RegEx coach

-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
What difference does it make to the dead,  the orphans, and the  
homeless, whether the  mad destruction is wrought under the name of  
totalitarianism or the holy name of  liberty and democracy? 

--Gandhi


On Jun 5, 2007, at 1:28 PM, John Mason wrote:

Is there a good regex testing tool out there. I tend to test  
straight off my

cf code which is cumbersome at times.

John
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[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 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 patriotism and exposing the  
country

to danger. It works the same in every country.
 --Hermann Goering, Hitler's Reich-Marshall at the Nuremberg  
Trials



On Jun 5, 2007, at 1:12 PM, Dean H. Saxe wrote:


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 PROTECTED]
What is objectionable, what is dangerous about extremists is not  
that

they are extreme, but that they are intolerant.
-- Robert F. Kennedy, 1964


On Jun 5, 2007, at 12:58 PM, Steven Ross wrote:


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 a

lookahead or lookbehind assertion.

-Steven

On 6/5/07, Ajas Mohammed [EMAIL PROTECTED] wrote:

do you plan to save the complete url in a variable or just search
keyword in a variable?  For example varUrl = a
href=http://blah.com?
search=Some
Lingering Suspicion target=_blankA Lingering Suspicion/a or
varUrl = Some Lingering Suspicion

Please clarify.

Ajas.


On 6/5/07, Steven Ross  [EMAIL PROTECTED] wrote:

in this string:

pb15) a href= http://blah.com?search=Some Lingering

Suspicion

target=_blankA Lingering Suspicion/a/b/p

i want to search for the spaces inside:

?search=

and replace those spaces with + so it should end up looking

like this:


?search=Some+Lingering+Suspicion

Can this be done?

thanks,

Steven



--
Steven Ross
web application  interface developer http://www.zerium.com
[mobile] 404-488-4364 [fax] 267-482-4364




-

Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists Archive @

http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com


-









--
Ajas Mohammed /
http://ajashadi.blogspot.com
No matter what, find a way. Because thats what winners do.
-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists Archive @
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



--
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ http://
www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @http://
www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http

Re: [ACFUG Discuss] Regex help

2006-08-07 Thread Dean H. Saxe

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 patriotism and  
exposing the country to danger. It works the same in every country.

--Hermann Goering, Hitler's Reich-Marshall at the Nuremberg Trials


On Aug 7, 2006, at 12:45 PM, Steven Ross wrote:


actually he would need this:

rereplace(string, [^a-fA-F0-9], , all);

On 8/7/06, Dean H. Saxe  [EMAIL PROTECTED]  
wrote:rereplace(string, [^A-F0-9], , all);


But if you're trying to do data validation, why wouldn't you throw
out any data that doesn't match the regex [A-F0-9]{min,max}?

-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
If liberty means anything at all, it means the right to tell people
what they do not want to hear.
 -- George Orwell, 1945


On Aug 7, 2006, at 12:29 PM, Mischa Uppelschoten ext 10 wrote:

 I can figure out how to remove a number of disallowed characters
 from a string, but what if I want to include only a-f and 0-9 and
 discard everything else?

 so if a user supplies: E97152C6CF1DD198DE95C7F2C2EF5EA0, do nothing
 if a user supplies E97152C6CF1DD198DE9;hackcode;

 it is supposed to return: E97152C6CF1DD198DE9accde

 Is that possible with a single regex? Or will I have to cycle
 through the string, and replace every character that doesn't match
 [a-f]|[0-9] with nothing?

 Thanks!
 Mischa,



 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa
 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-






--
Steven Ross
web application  interface developer
http://www.zerium.com
[phone] 404-488-4364
-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-




-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] Regex help

2006-08-07 Thread Teddy Payne
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 and not rendered as _javascript_. I believe the flash form SWF valdiation cannot be turned off from the browser's VM.
Correct me if I am wrong Dean.TeddyOn 8/7/06, Steven Ross [EMAIL PROTECTED] wrote:
actually he would need this:rereplace(string, [^a-fA-F0-9], , all);
On 8/7/06, Dean H. Saxe 

[EMAIL PROTECTED] wrote:rereplace(string, [^A-F0-9], , all);
But if you're trying to do data validation, why wouldn't you throwout any data that doesn't match the regex [A-F0-9]{min,max}?-dhsDean H. Saxe, CISSP, CEH

[EMAIL PROTECTED]If liberty means anything at all, it means the right to tell peoplewhat they do not want to hear. -- George Orwell, 1945On Aug 7, 2006, at 12:29 PM, Mischa Uppelschoten ext 10 wrote:
 I can figure out how to remove a number of disallowed characters from a string, but what if I want to include only a-f and 0-9 and discard everything else? so if a user supplies: E97152C6CF1DD198DE95C7F2C2EF5EA0, do nothing
 if a user supplies E97152C6CF1DD198DE9;hackcode; it is supposed to return: E97152C6CF1DD198DE9accde Is that possible with a single regex? Or will I have to cycle through the string, and replace every character that doesn't match
 [a-f]|[0-9] with nothing? Thanks! Mischa, - To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa For more info, see 
http://www.acfug.org/mailinglists Archive @ 
http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -

-To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglistsArchive @ 
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com-
-- Steven Ross
web application  interface developer http://www.zerium.com[phone] 404-488-4364



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-


-- cf_payne /http://cfpayne.wordpress.com/



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



Re: [ACFUG Discuss] regex help

2006-05-17 Thread Dean H. Saxe
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 morally treasonable to the American public."    -- Theodore RooseveltFind out about my Hike for Discovery at www.fullfrontalnerdity.com/hfd On May 17, 2006, at 10:33 AM, Steven Ross wrote:Hi all... this stuff always boggles my mind when I try to do it so yet again I'm asking for help.I'm trying to match only strings like the one below in a JS file using ReFind and return them individually.menu1.addItem ("Architecture","http://infoserve.glenayre.com/AdvancedDev/default.html");I have something like this but I think it is getting the first match all the way to the last ";" cfset parsed_content = ReFind("menu[0-9]+[^;]\);", menu_content, 1, "True") /snip from js file//var menu2 = ms.addMenu(document.getElementById("menu2"));     //menu2.addItem("Updates","http://www.highend3d.com/maya/");        /* DEPARTMENTS MENU */    var menu1 = ms.addMenu(document.getElementById ("dropdown1"));    menu1.addItem("Architecture","http://infoserve.glenayre.com/AdvancedDev/default.html");    menu1.addItem ("Atlanta Engineering","http://157.230.162.126/");    menu1.addItem("Compliance","/infoserve/departments/compliance/");    //menu1.addItem("Bids and Proposals","#");     menu1.addItem("Engineering Product Assurance","http://157.230.167.122/");/snip from js file-- Steven Rossweb application  interface developer http://www.zerium.com[phone] 404-488-4364 - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform  For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink -

Re: [ACFUG Discuss] regex help

2006-05-17 Thread Teddy Payne
(\/\/)?[\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 results that start with the comments.On 5/17/06, Dean H. Saxe 
[EMAIL PROTECTED] wrote:
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 morally treasonable to the American public.

 -- Theodore RooseveltFind out about my Hike for Discovery at 
www.fullfrontalnerdity.com/hfd On May 17, 2006, at 10:33 AM, Steven Ross wrote:Hi all... this stuff always boggles my mind when I try to do it so yet again I'm asking for help.
I'm trying to match only strings like the one below in a JS file using ReFind and return them individually.menu1.addItem (Architecture,
http://infoserve.glenayre.com/AdvancedDev/default.html);I have something like this but I think it is getting the first match all the way to the last ; cfset parsed_content = ReFind(menu[0-9]+[^;]\);, menu_content, 1, True) /
snip from js file//var menu2 = ms.addMenu(document.getElementById(menu2));  //menu2.addItem(Updates,
http://www.highend3d.com/maya/);  /* DEPARTMENTS MENU */ var menu1 = ms.addMenu(document.getElementById (dropdown1)); menu1.addItem(Architecture,
http://infoserve.glenayre.com/AdvancedDev/default.html); menu1.addItem (Atlanta Engineering,
http://157.230.162.126/); menu1.addItem(Compliance,/infoserve/departments/compliance/); //menu1.addItem(Bids and Proposals,#);  menu1.addItem(Engineering Product Assurance,
http://157.230.167.122/);/snip from js file-- Steven Rossweb application  interface developer 
http://www.zerium.com[phone] 404-488-4364 - 
To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform
  For more info, see http://www.acfug.org/mailinglists Archive @ 
http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink -





-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by FusionLink

-