Confusion with shell-globbing wildcards and Regex
NickName:anon Ask DateTime:2009-08-25T01:57:40

Confusion with shell-globbing wildcards and Regex

Initiated by the reply.

  1. How can I use only Regex instead of wildcards?
  2. Where do you really need wildcards and globbing if you can use Regex?
  3. Have Regexes evolved from wildcards or vice versa?

Copyright Notice:Content Author:「anon」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/1323805/confusion-with-shell-globbing-wildcards-and-regex

More about “Confusion with shell-globbing wildcards and Regex” related questions

Confusion with shell-globbing wildcards and Regex

Initiated by the reply. How can I use only Regex instead of wildcards? Where do you really need wildcards and globbing if you can use Regex? Have Regexes evolved from wildcards or vice versa?

Show Detail

Converting shell wildcards to regex

I want to search for titles using shell wildcards like *.js, *.*.* etc. in js. The thing is I loop through a list of titles and I need to filter the files using a js regex test. How do I convert sh...

Show Detail

Confusion about wildcards capture in Java

I have read a post about how wildcards capture works in java. In this section, the author illustrates how compiler capture wildcard types and do some conversion. But my confusion comes after comp...

Show Detail

Regex with wildcards and slashes?

I'm using WinGrep and Notepad++ (Windows) with some other software that uses Regex. I've also been attempting to solve it with this site:- http://www.regexlab.com/wild2regex An example of the text...

Show Detail

RegEx With A Street Prefix And Wildcards

I can't figure out the correct regex expression for what I am looking for. Essentially what I need is the following. If user searches for a street prefix such as N W E S and includes a wildcard (%...

Show Detail

Regex / C# String - Pseudo Wildcards into an Array

I want to create some wildcards in strings in C#. So an end-user can fill up a glob of text with wildcards. Imagine: var targetString = @"There is a banana in this %%object%%. For this, ...

Show Detail

Mixing regex and shell wildcards

I have a python script that reads from a config file. The config file is going to contain some user defined regex patterns. However, I was thinking I'd like to let the user use either full regex pa...

Show Detail

Using regex in snakemake wildcards

I'm using regex in snakemake wildcards but I've come accross an error that I don't understand. In this shortened example it works: rule graphviz: input: "{graph}.dot" output: "{graph}.{e...

Show Detail

Wildcards in RegEx Haystack (target)?

I want to search for a shorter string in a longer string. Can the longer string (haystack/target) be setup with wildcards? e.g.) I want to look for 1234 in a string 1234578. Sometimes the long ...

Show Detail

How can I have two wildcards in this regex expression?

trying to get the following regex: <- bad english from me :( I'm trying to get the following input text converted as regex... xx.*.aaa.bbb* where * are wildcards .. as in .. they represent wildc...

Show Detail