472,958 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Hi Just want to find out if regular expression is possible.

Hello Strange problem with regex parsing.

The regular expession search text

217.173.102.220 - foomart [08/Feb/2008:15:36:26 +0000]

regular expression.

(.*[^\s]\s)(-)(\s)(.*[^\s])

i can read the following as

(Give me any thing except the space charecter followed by a space)
217.173.102.220
(Give me - char) -
(Give me space charecter) a whitespace
(Give me any thing except space charecter) expected foomart : ouptput
is foomart [08/Feb/2008:15:36:26 +0000]

can you please let me know how to do this i can write a \w but foomart
can be foo.mart or foo_mart or foo&mart hence i dont want to use a \w
in this case

i just want some thing similar which is ( Give me any thing till the
space)

Regards
Vinay

Jun 27 '08 #1
1 1232
found out how to do it ([^/\s]*\s*)

read the following as

simply say (not of space) any number of repeats followed by space
charecter repeats,

Regards
Vinay

On 29 Apr, 17:25, Vinay Bhushan <bhushanvi...@gmail.comwrote:
Hello Strange problem with regex parsing.

The regular expession search text

217.173.102.220 - foomart [08/Feb/2008:15:36:26 +0000]

regular expression.

(.*[^\s]\s)(-)(\s)(.*[^\s])

i can read the following as

(Give me any thing except the space charecter followed by a space)
217.173.102.220
(Give me - char) -
(Give me space charecter) a whitespace
(Give me any thing except space charecter) expected foomart : ouptput
is foomart [08/Feb/2008:15:36:26 +0000]

can you please let me know how to do this i can write a \w but foomart
can be foo.mart or foo_mart or foo&mart hence i dont want to use a \w
in this case

i just want some thing similar which is ( Give me any thing till the
space)

Regards
Vinay
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris Lasher | last post by:
Hello, I would like to create a set of very similar regular expression. In my initial thought, I'd hoped to create a regular expression with a variable inside of it that I could simply pass a...
26
by: rkleiner | last post by:
Is there a regular expression to find the first unmatched right bracket in a string, if there is one? For example, "(1*(2+3))))".search(/regexp/) == 9 Thanks in advance.
2
by: Dot net work | last post by:
Hello. Say I have a .net textbox that uses a .net regularexpressionvalidator. If the regular expression fails, is it possible to launch a small client side javascript function to do something,...
2
by: JebBushell | last post by:
I see signs that the ASP.NET regular expression validator has a different instruction set that the Find utility in VS 2003. I am trying to use the VS2003 regular expression Find tool to test...
43
by: Roger L. Cauvin | last post by:
Say I have some string that begins with an arbitrary sequence of characters and then alternates repeating the letters 'a' and 'b' any number of times, e.g. "xyz123aaabbaabbbbababbbbaaabb" I'm...
10
by: Mike9900 | last post by:
Hello, I need a regular expression to match a currency with its symbol, for example Pound66.99 must return 66.99 or Pound(66.99) or Pound-66.99 or -66.99Pound return -66.99 or any other...
0
by: ahropak | last post by:
Hi, I have a question regarding a regular expression within Regex.Split() method which will help me to break each line of code into tokens. I'm trying to parse some lines of C# source code and...
7
by: blaine | last post by:
Hey everyone, For the regular expression gurus... I'm trying to write a string matching algorithm for genomic sequences. I'm pulling out Genes from a large genomic pattern, with certain start...
47
by: Henning_Thornblad | last post by:
What can be the cause of the large difference between re.search and grep? This script takes about 5 min to run on my computer: #!/usr/bin/env python import re row="" for a in range(156000):...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.