Re: A little help with regular expressions
- From: "MatsL@xxxxxxxxxxxxxxxxx" <MatsL@xxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Jun 2006 15:37:27 +0200
Thanks for the responses Kevin and Jon,
I wanted to do some benchmarking to see how fast I could get the regex to work. It's always nice to be able to compare different solutions to a problem before settling with one.
I'm using it in a HttpModule to redirect urls, so I want it to be as fast as possible.
I'm gonna run some benchmarks on the solution I have and see how I can optimize it.
Best regards,
Mats Lycken
Kevin Yu [MSFT] wrote:
Hi Mats,.
I agree with Larry that using IndexOf in String class is enough in this scenario. Also, you don't need to worry about the performance for it. I think it'll be faster than RegEx, because it will parse the whole string according to RegEx schema, which makes it slower.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no rights.)
- Follow-Ups:
- Re: A little help with regular expressions
- From: Kevin Yu [MSFT]
- Re: A little help with regular expressions
- References:
- A little help with regular expressions
- From: MatsL@xxxxxxxxxxxxxxxxx
- Re: A little help with regular expressions
- From: Larry Lard
- Re: A little help with regular expressions
- From: MatsL@xxxxxxxxxxxxxxxxx
- Re: A little help with regular expressions
- From: Kevin Yu [MSFT]
- A little help with regular expressions
- Prev by Date: Re: How do I fill with 0 where nessessary when dealing with time.
- Next by Date: Re: Is there anyone skilled in windows services?
- Previous by thread: Re: A little help with regular expressions
- Next by thread: Re: A little help with regular expressions
- Index(es):
Relevant Pages
|