PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > anyone wanna with a couple regular expressions or...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

anyone wanna with a couple regular expressions or...

Réponse
 
LinkBack Outils de la discussion
Vieux 25/03/2008, 21h11   #1
Dirk.R.Gently@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut anyone wanna with a couple regular expressions or...

should I look at a manual.

I got a couple basic regular expressions I need for a small script and
I don't wanna wait till I learn a bunch of regular expressions. I've
begun reading

http://www.regular-expressions.info/

which seems like a pretty good guide. But haven't learned enough yet
apparently and like to get this script done.

I need three regular expression searches:

(n)
(v)
(adv)

Now I understand special characters need to be preceded with a / but

/(n/) isn't working

why?

please if ya can.
  Réponse avec citation
Vieux 25/03/2008, 21h29   #2
OldSchool
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: anyone wanna with a couple regular expressions or...

On Mar 25, 4:11pm, "Dirk.R.Gen...@gmail.com"
<Dirk.R.Gen...@gmail.com> wrote:
> should I look at a manual.
>
> I got a couple basic regular expressions I need for a small script and
> I don't wanna wait till I learn a bunch of regular expressions. I've
> begun reading
>
> http://www.regular-expressions.info/
>
> which seems like a pretty good guide. But haven't learned enough yet
> apparently and like to get this script done.
>
> I need three regular expression searches:
>
> (n)
> (v)
> (adv)
>
> Now I understand special characters need to be preceded with a / but
>
> /(n/) isn't working
>
> why?
>
> please if ya can.


\(n\) ....
  Réponse avec citation
Vieux 25/03/2008, 21h33   #3
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: anyone wanna with a couple regular expressions or...

"Dirk.R.Gently@gmail.com" <Dirk.R.Gently@gmail.com> writes:

> Now I understand special characters need to be preceded with a / but


You mean \ - not /
  Réponse avec citation
Vieux 25/03/2008, 22h25   #4
Dirk.R.Gently@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: anyone wanna with a couple regular expressions or...

On Mar 25, 3:33 pm, Maxwell Lol <nos...@com.invalid> wrote:
> "Dirk.R.Gen...@gmail.com" <Dirk.R.Gen...@gmail.com> writes:
> > Now I understand special characters need to be preceded with a / but

>
> You mean \ - not /


lol thanks for the guys. I must be dyslexic
  Réponse avec citation
Vieux 27/03/2008, 14h37   #5
Ed Morton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: anyone wanna with a couple regular expressions or...



On 3/25/2008 4:25 PM, Dirk.R.Gently@gmail.com wrote:
> On Mar 25, 3:33 pm, Maxwell Lol <nos...@com.invalid> wrote:
>
>>"Dirk.R.Gen...@gmail.com" <Dirk.R.Gen...@gmail.com> writes:
>>
>>>Now I understand special characters need to be preceded with a / but

>>
>>You mean \ - not /

>
>
> lol thanks for the guys. I must be dyslexic


Just be aware that different tools support different RE specifications and you
can't always use REs instead of strings. For example:

sed uses Basic REs or Extended REs depending on tool version and options given.
grep uses Basic REs, Extended REs, or Perl REs depending on tool version and
options given.
awk uses Extended REs but only in conditions and some functions and some ERE
functionality must be explicitly enabled with options for backward compatibility.
perl, presumably, uses Perl REs....
etc......

So when asking any question about REs, it's usually important to say what type
of RE you're interested in and/or which tool you're using.

For a general RE reference, I like
http://www.opengroup.org/onlinepubs/...99/xbd/re.html.

Ed.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11989 seconds with 13 queries