Sponsored Content
Full Discussion: PCRE string questions.
Top Forums Shell Programming and Scripting PCRE string questions. Post 302363125 by komputersman on Monday 19th of October 2009 01:47:43 PM
Old 10-19-2009
PCRE string questions.

What is the string that would satisfy this expression: "^gs{3}$" ?

What is an expression that would satisfy all these strings: csafaq.exe, csafbc.exe, asdfcd.exe?

Also, To catch these files, :
gdnus1862[2].exe
gdnus10[1].exe
gdnus250[1].exe
gdnus2337[1].exe

I am using this regex. : ^gdnus[0,9]{1,5}.[0,9]{0,1}.\.exe$

But it is not working. What is wrong with it?

Your help is appreciated, thanks. Smilie
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

...yet another string of awk/sed questions from a RegExp-Challenged luser %-\

Greetings all, ...here is yet another string of awk/sed questions from a RegExp-Challenged luser :eek: I'm looking to have sed/awk do some clean-up on routing tables and to that end, I would like to do the following: 1.) If a line contains the word "masks" or "subnets" prepend CR/LF to... (16 Replies)
Discussion started by: SteveB-in-LV
16 Replies

2. Programming

messy questions: how to convert a string into a int64 in linux

Recently I was stuck at 64bit questions in 32pc....... lots of unknown questions came up .... as mentioned : messy questions: how to convert a string into a int64 in linux i tried ll = atoll(string) but faild btw: ll is defined as : long long ll = 0; I print the return like this:... (2 Replies)
Discussion started by: macroideal
2 Replies

3. Shell Programming and Scripting

PCRE negative lookahead

I have read many tutorials and cannot get this to work. I need to use pcre (because that is what the library in the software we are using uses) and pcregrep everything except /home from the /etc/fstab pcregrep '(?!/home)' /etc/fstab It returns the entire fstab (This is on a RHEL5... (1 Reply)
Discussion started by: insania
1 Replies

4. UNIX for Advanced & Expert Users

Postfix - pcre

Hello. I need to test valid sender address. I have created a rule in main.cf : smtpd_sender_login_maps = pcre:/etc/postfix/sender_login_maps.pcre smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, reject_sender_login_mismatch THe file... (1 Reply)
Discussion started by: jcdole
1 Replies
ilasm(1)						      General Commands Manual							  ilasm(1)

NAME
ilasm, ilasm2 - Mono IL assembler SYNOPSIS
ilasm [option] [source-files] ilasm2 [option] [source-files] DESCRIPTION
ilasm is the Mono ILAsm assembler. You can pass one or more options to drive the compiler, and a set of source files. Use ilasm to generate 1.0 assemblies and use ilasm2 to assemble programs that use the 2.0 features (generics). The Mono ILAsm assembler accepts options starting with / or - for mosted options. The Mono ILAsm assembler generates images (.exe and .dll files) that contain CIL byte code that can be executed by any system that imple- mented a Common Language Infrastructure virtual machine. OPTIONS
/output:<file_name> Specify the output file name. /exe Generate an exe /dll Generate a library /scan_only Just scan the IL code and display tokens. /show_tokens Show tokens as they are parsed. /show_method_def Display method information when a method is defined. /show_method_ref Display method information when a method is referenced /key:KEYFILE Strongname (sign) the output assembly using the key pair present in the specified strong name key file (snk). A full key pair is required (i.e. delay signing is done using a .publickey directive in the sources). /key:@CONTAINER Strongname (sign) the output assembly using the key pair present in the specified container. --about Display information about ilasm --version Display ilasm version SEE ALSO
mono(1),mcs(1) COPYRIGHT
Copyright (C) 2004, 2007 Novell, Inc (http://www.novell.com) MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. WEB SITE
Visit: http://www.mono-project.com for details ilasm(1)

Featured Tech Videos

All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy