The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
regular expression jaber87 Shell Programming and Scripting 3 06-05-2008 04:07 AM
regular expression ag79 Shell Programming and Scripting 3 03-19-2008 07:10 AM
help in regular expression Rakesh Ranjan High Level Programming 5 10-25-2006 02:00 PM
regular expression help mac2118 Shell Programming and Scripting 5 03-01-2005 07:45 AM
Regular Expression + Aritmetical Expression Z0mby Shell Programming and Scripting 2 05-21-2002 11:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2008
mradsus mradsus is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Regular Expression

Hi All,
This regular expression is in awk.
What does this regular expression evaluate to(character by character).

($0 ~ /^ .+*([0-9]|-).+*\*+.?*\*/)
  #2 (permalink)  
Old 08-04-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
  • ^ is beginning of line
  • space is just itself
  • .+ is any character, one or more times
  • ([0-9]|-) matches either a single digit or a dash
  • .+ is any character, one or more times
  • * in this context is a syntax error, but otherwise specifies a repetition of zero or more times
  • \*+ is one or more literal asterisks
  • .? matches zero or one occurrence of any character
  • * in this context is again a syntax error
  • \* is a literal asterisk
  #3 (permalink)  
Old 08-05-2008
mradsus mradsus is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Thanks era.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0