HighDots Forums  

RegEx help

Javascript JavaScript language (comp.lang.javascript)


Discuss RegEx help in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: RegEx help - 12-14-2007 , 04:01 PM






Steve Swift wrote:
Quote:
Thomas 'PointedEars' Lahn wrote:
I have a string like A:BCD:EFG and I need to populate a variable with
^^^
'BCD'.

this works for me:

.*):

This will match also `::'.

If that's the data then "" is the answer.
Not destroying the context might have been wise in order to understand what
I was aiming at.


PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>


Reply With Quote
  #12  
Old   
Steve Swift
 
Posts: n/a

Default Re: RegEx help - 12-15-2007 , 03:28 AM






Thomas 'PointedEars' Lahn wrote:
Quote:
Steve Swift wrote:
Thomas 'PointedEars' Lahn wrote:
I have a string like A:BCD:EFG and I need to populate a variable with
^^^
'BCD'.

this works for me:

.*):
This will match also `::'.
If that's the data then "" is the answer.

Not destroying the context might have been wise in order to understand what
I was aiming at.


PointedEars
You're in the wrong newsgroup. You should aim such comments at the
cause: Thunderbird.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #13  
Old   
Randy Webb
 
Posts: n/a

Default Re: RegEx help - 12-15-2007 , 12:49 PM



Steve Swift said the following on 12/15/2007 3:28 AM:
Quote:
Thomas 'PointedEars' Lahn wrote:
Steve Swift wrote:
Thomas 'PointedEars' Lahn wrote:
I have a string like A:BCD:EFG and I need to populate a variable with
^^^
'BCD'.

this works for me:

.*):
This will match also `::'.
If that's the data then "" is the answer.

Not destroying the context might have been wise in order to understand
what
I was aiming at.


PointedEars

You're in the wrong newsgroup. You should aim such comments at the
cause: Thunderbird.

Thunderbird didn't do that, whoever snipped it did. Thunderbird quotes
the entire message and the only way to "destroy the context" is if the
user snips it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
  #14  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: RegEx help - 12-16-2007 , 08:00 AM



Steve Swift wrote:
Quote:
Thomas 'PointedEars' Lahn wrote:
Steve Swift wrote:
Thomas 'PointedEars' Lahn wrote:
I have a string like A:BCD:EFG and I need to populate a variable with
^^^
'BCD'.

this works for me:

.*):
This will match also `::'.
If that's the data then "" is the answer.
Not destroying the context might have been wise in order to understand what
I was aiming at.
[...]

You're in the wrong newsgroup. You should aim such comments at the
cause: Thunderbird.
I use exactly the same version of Thunderbird like you do and therefore I
know that is an outright lie^W winding around *your* failing. You should
be ashamed for attributing it to the software.

Please trim your quotes while retaining the context.


F'up2 poster

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.