Removing Commas

View: New views
2 Messages — Rating Filter:   Alert me  

Removing Commas

by Melvin Mah :: Rate this Message:

| View Threaded | Show Only this Message

I've written a regular expression in which three
numbers are returned. E.g (1-10) of 750,0000 results
found.

The regex that I've did worked and it's:

 regexp="<font size=-1>Results <b>([0-9]*)</b> -
<b>([0-9]*)&</b> of about <b>([^<]*)</b>"
parenthesis="3" subgroup="3" />

I managed to get 750,000 but I do not want the commas
I need to remove those.

Is there any syntax that I need to add /change to the
current regex?

Thank you.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@...
For additional commands, e-mail: oro-user-help@...


Parent Message unknown Re: Removing Commas

by Melvin Mah :: Rate this Message:

| View Threaded | Show Only this Message

Hey Daniel,

Just tried out putting <replace var> thing in the
configuration file (xml.format)and it worked out
without having to change the .jsp file for the module.

For some reason, total results of the keyword
'management' were never returned at all but not for
the others! Ha! Is it that  word is a reserved word?

melvin

--- "Daniel F. Savarese" <dfs@...> wrote:

>
> In message
>
<20060821100414.61356.qmail@...>,

> Melvin Mah
>  writes:
> >I managed to get 750,000 but I do not want the
> commas
> >I need to remove those.
> >
> >Is there any syntax that I need to add /change to
> the
> >current regex?
>
> You're going to have to do a postprocessing
> substitution pass because
> you don't know exactly how many commas are going to
> be in any given
> piece of input.  Otherwise, you could capture the
> numbers surrounding
> the commas and concatenate them.
>
> daniel
>
> -#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#-
> http://www.savarese.org/
> In distant lands, I hear the call of my home.     #
>    s a v a r e s e
> Yet my work is not done.  My journey's just begun.-
>   software research
>  -- http://www.sleepandthetraveller.com/          #
> http://www.savarese.com/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> oro-user-unsubscribe@...
> For additional commands, e-mail:
> oro-user-help@...
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@...
For additional commands, e-mail: oro-user-help@...