Re: [ACFUG Discuss] regex help

2007-06-05 Thread Teddy R Payne

I am a fan of QuickRex:

http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html

It is a eclipse view that you can test by copying text in a text box and 
then execute regex against it and it highlights what you regex will cover.


Teddy

- Original Message -
From: "John Mason" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, June 05, 2007 1:28 PM
Subject: RE: [ACFUG Discuss] regex help

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 /(
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 = http://blah.com?
search=Some
Lingering Suspicion" target="_blank">"A Lingering Suspicion" or
varUrl = "Some Lingering Suspicion"

Please clarify.

Ajas.


On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
> in this string:
>
> 15) http://blah.com?search=Some Lingering
Suspicion"
> target="_blank">"A Lingering Suspicion"
>
> 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
>
-
>
>
>
>



--

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

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 /("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 = http://blah.com?
search=Some
Lingering Suspicion" target="_blank">"A Lingering Suspicion" or
varUrl = "Some Lingering Suspicion"

Please clarify.

Ajas.


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

in this string:

15) http://blah.com?search=Some Lingering

Suspicion"

target="_blank">"A Lingering Suspicion"

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


-









--

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:

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 /( ([^=]+=\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 = >> href="http://blah.com?
>>> search=Some
>>> Lingering Suspicion" target="_blank">"A Lingering Suspicion" or
>>> varUrl = "Some Lingering Suspicion"
>>>
>>> Please clarify.
>>>
>>> Ajas.
>>>
>>>
>>> On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
>>> > in this string:
>>> >
>>> > 15) http://blah.com?search=Some Lingering
>>> Suspicion"
>>> > target="_blank">"A Lingering Suspicion"
>>> >
>>> > 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
>>> >
>>> -
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> 
>>> 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
>>> --

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 /(([^=]

+=\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 = http://blah.com?
>> search=Some
>> Lingering Suspicion" target="_blank">"A Lingering Suspicion"
>> or varUrl = "Some Lingering Suspicion"
>>
>> Please clarify.
>>
>> Ajas.
>>
>>
>> On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
>> > in this string:
>> >
>> > 15) http://blah.com?search=Some Lingering
>> Suspicion"
>> > target="_blank">"A Lingering Suspicion"
>> >
>> > 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
>> >
>> -
>> >
>> >
>> >
>> >
>>
>>
>>
>> --
>> 
>> 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.fusion

RE: [ACFUG Discuss] regex help

2007-06-05 Thread John Mason
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 /( ([^=]+=\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 = >> href="http://blah.com?
>>> search=Some
>>> Lingering Suspicion" target="_blank">"A Lingering Suspicion" or 
>>> varUrl = "Some Lingering Suspicion"
>>>
>>> Please clarify.
>>>
>>> Ajas.
>>>
>>>
>>> On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
>>> > in this string:
>>> >
>>> > 15) http://blah.com?search=Some Lingering
>>> Suspicion"
>>> > target="_blank">"A Lingering Suspicion"
>>> >
>>> > 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
>>> >
>>> -
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> 
>>> 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

Re: [ACFUG Discuss] regex help

2007-06-05 Thread Steven Ross

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 /( 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 = http://blah.com?
>> search=Some
>> Lingering Suspicion" target="_blank">"A Lingering Suspicion"
>> or varUrl = "Some Lingering Suspicion"
>>
>> Please clarify.
>>
>> Ajas.
>>
>>
>> On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
>> > in this string:
>> >
>> > 15) http://blah.com?search=Some Lingering
>> Suspicion"
>> > target="_blank">"A Lingering Suspicion"
>> >
>> > 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
>> >
>> -
>> >
>> >
>> >
>> >
>>
>>
>>
>> --
>> 
>> 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
-





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 /(([^=]+=\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 = http://blah.com? 
search=Some

Lingering Suspicion" target="_blank">"A Lingering Suspicion"
or varUrl = "Some Lingering Suspicion"

Please clarify.

Ajas.


On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
> in this string:
>
> 15) http://blah.com?search=Some Lingering  
Suspicion"

> target="_blank">"A Lingering Suspicion"
>
> 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
>
-
>
>
>
>



--

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

Don't need the lookarounds

Use this regex and save $1 and $3 /(+=\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 = http://blah.com? 
search=Some

Lingering Suspicion" target="_blank">"A Lingering Suspicion"
or varUrl = "Some Lingering Suspicion"

Please clarify.

Ajas.


On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
> in this string:
>
> 15) http://blah.com?search=Some Lingering  
Suspicion"

> target="_blank">"A Lingering Suspicion"
>
> 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
>
-
>
>
>
>



--

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 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 = http://blah.com?search=Some
Lingering Suspicion" target="_blank">"A Lingering Suspicion"
or varUrl = "Some Lingering Suspicion"

Please clarify.

Ajas.


On 6/5/07, Steven Ross < [EMAIL PROTECTED]> wrote:
> in this string:
>
> 15) http://blah.com?search=Some Lingering Suspicion"
> target="_blank">"A Lingering Suspicion"
>
> 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
>
-
>
>
>
>



--

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
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:

15) http://blah.com?search=Some Lingering Suspicion"
target="_blank">"A Lingering Suspicion"

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 Jeff Howard

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:

15) http://blah.com?search=Some Lingering Suspicion"
target="_blank">"A Lingering Suspicion"

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 - 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 Ajas Mohammed

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

Please clarify.

Ajas.


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


in this string:

15) http://blah.com?search=Some Lingering Suspicion"
target="_blank">"A Lingering Suspicion"

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
-







--

http://ajashadi.blogspot.com
No matter what, find a way. Because thats what winners do.



-
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

2006-08-07 Thread Dean H. Saxe
Flash can be decompiled or you can write your own client.  Or use a  
MITM proxy to modify the data.


-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:56 PM, Teddy Payne wrote:


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.

Teddy

On 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 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
-



--

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
-




-
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 Dean H. Saxe
Client side validation is useless in this case.  This MUST be done  
server side.


-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 Aug 7, 2006, at 12:56 PM, Teddy Payne wrote:


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.

Teddy

On 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 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
-



--

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
-




-
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
-


-- 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-08-07 Thread Steven Ross
heh, you almost wrote the regex, you would just do [A-F0-9] as your match (or rather negate it and replace it with whitespace)... that is if you only want uppercase A-F if you want lower do [a-fA-F]course the problem with your example below would be that all of the letters in 'hackcode' that are in the a-f range would be included.
On 8/7/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED]> 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: E97152C6CF1DD198DE9accdeIs 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?falogin.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
-



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 Steven Ross
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
-



Re: [ACFUG Discuss] Regex help

2006-08-07 Thread Dean H. Saxe

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
-





Re: [ACFUG Discuss] regex help

2006-05-17 Thread Steven Ross
its still only returning two variables in the array... On 5/17/06, Dean H. Saxe <[EMAIL PROTECTED]
> wrote:ReFind uses pretty standard syntax.  [^;] should work fine.
 



Dean H. Saxe, 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
Find out about my Hike for Discovery at www.fullfrontalnerdity.com/hfd
 On May 17, 2006, at 11:50 AM, Teddy Payne wrote:Try this one.  ReFind may not like the [^;] notation.((\/\/)[\s]+)?+menu[0-9]+.addItem[\(\"\w\d\,\:\/\.\)]+
On 5/17/06, Steven Ross < [EMAIL PROTECTED]> wrote:
ugh sorry all, what do i use to capture all these elements... ReFind doesn't seem to support this... On 5/17/06, Teddy Payne <
 [EMAIL PROTECTED]> wrote:(\/\/)?[\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 ";"  
//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/");
-- 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 - 
-- 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 -

-- 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 Dean H. Saxe
ReFind uses pretty standard syntax.  [^;] should work fine. Dean H. Saxe, 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, 1945Find out about my Hike for Discovery at www.fullfrontalnerdity.com/hfd On May 17, 2006, at 11:50 AM, Teddy Payne wrote:Try this one.  ReFind may not like the [^;] notation.((\/\/)[\s]+)?+menu[0-9]+.addItem[\(\"\w\d\,\:\/\.\)]+On 5/17/06, Steven Ross < [EMAIL PROTECTED]> wrote:ugh sorry all, what do i use to capture all these elements... ReFind doesn't seem to support this... On 5/17/06, Teddy Payne < [EMAIL PROTECTED]> wrote:(\/\/)?[\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 ";"  //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/");-- 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 - -- 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 -

Re: [ACFUG Discuss] regex help

2006-05-17 Thread Teddy Payne
Try this one.  ReFind may not like the [^;] notation.((\/\/)[\s]+)?+menu[0-9]+.addItem[\(\"\w\d\,\:\/\.\)]+On 5/17/06, Steven Ross <
[EMAIL PROTECTED]> wrote:ugh sorry all, what do i use to capture all these elements... ReFind doesn't seem to support this...
On 5/17/06, Teddy Payne <
[EMAIL PROTECTED]> wrote:(\/\/)?[\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 ";" 
//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/");-- 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

-



-- 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

-




Re: [ACFUG Discuss] regex help

2006-05-17 Thread Teddy Payne
((\/\/)[\s]+)?+menu[0-9]+.addItem[^;]+Sorry Steve.  The previous example that I showed you was greedy on leading white space on non-commented lines.  Above is teh corrected RegEx.Sorry about that,Teddy
On 5/17/06, Teddy Payne <[EMAIL PROTECTED]> wrote:
(\/\/)?[\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 ";" 
//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/");-- 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

-




Re: [ACFUG Discuss] regex help

2006-05-17 Thread Steven Ross
ugh sorry all, what do i use to capture all these elements... ReFind doesn't seem to support this...On 5/17/06, Teddy Payne <
[EMAIL PROTECTED]> wrote:(\/\/)?[\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 ";" 
//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/");-- 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

-



-- 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 ";" 
//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/");-- 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

-




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 ";" //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/");-- 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 Steven Ross
yepOn 5/17/06, Teddy Payne <[EMAIL PROTECTED]> wrote:
You want the entire line that has the addItem methods?So, your goal is to capture all the new menu items?Teddy
On 5/17/06, Steven Ross <
[EMAIL PROTECTED]> 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 ";"
//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/");
-- 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

-



-- 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
You want the entire line that has the addItem methods?So, your goal is to capture all the new menu items?TeddyOn 5/17/06, Steven Ross <
[EMAIL PROTECTED]> 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 ";"
//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/");
-- 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

-