Questions tagged [wildcard]

A wildcard character is a specially defined character allowing for substitution of any other character, including a pattern or sequence of characters. Use this tag for questions on how to use wildcards for regular expressions, shell scripting, string manipulation and database control, but not for use in terminal commands as that is off-topic.

A wildcard character is a special character defined by many different systems/programming languages with each their own specific implementations. They may allow for accessing single characters, sets of characters or all characters matching a certain regex pattern.

Examples include :

* - Any sequence of characters. (DOS/Unix)
? - Any single character. (DOS/Unix)
% - Zero or more characters. (SQL)
# - Matches a single numeral. (SQL)
. - Matches a single character. (Regular Expressions)

4611 questions
33
votes
4 answers

using wildcards in LDAP search filters/queries

I have very limited knowledge in AD and LDAP queries so I have a simple question on how to use wildcards. Supposed there is object with a displayName of "ITSM - Problem Management" My current implementation of the filter with a wildcard is as…
AnimaSola
  • 7,146
  • 14
  • 43
  • 62
33
votes
6 answers

getElementById() wildcard

I got a div, and there i got some childnodes in undefined levels. Now I have to change the ID of every element into one div. How to realize? I thought, because they have upgoing IDs, so if the parent is id='path_test_maindiv' then the next downer…
Florian Müller
  • 7,448
  • 25
  • 78
  • 120
33
votes
6 answers

Bash for loop with wildcards and hidden files

Just witting a simple shell script and little confused: Here is my script: % for f in $FILES; do echo "Processing $f file.."; done The Command: ls -la | grep bash produces: % ls -a | grep…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
32
votes
6 answers

How to use the .* wildcard in bash but exclude the parent directory (..)?

There are often times that I want to execute a command on all files (including hidden files) in a directory. When I try using chmod g+w * .* it changes the permissions on all the files I want (in the directory) and all the files in the parent…
Allan
  • 1,635
  • 4
  • 15
  • 19
32
votes
5 answers

Wildcard equivalent in C# generics

Let's say I have a generic class as follows: public class GeneralPropertyMap { } In some other class I have a method that takes in an array of GeneralPropertyMap. In Java, in order to take in an array that contains any type of…
AxiomaticNexus
  • 6,190
  • 3
  • 41
  • 61
31
votes
7 answers

What is the use and point of unbound wildcards generics in Java?

I don't understand what is the use of unbound wildcards generics. Bound wildcards generics with upper boundary makes perfect sense, because using polymorphism I can work with that type or collection. But what is the point of…
lisak
  • 21,611
  • 40
  • 152
  • 243
31
votes
1 answer

CS1607: The version specified for the 'file version' is not in the normal 'major.minor.build.revision' format in .NET

I am trying to set my AssemblyVersion and AssemblyFileVersion attributes in my project like so: [assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyFileVersion("3.0.*")] but I get this warning: CS1607: Assembly generation -- The version…
Sheridan
  • 68,826
  • 24
  • 143
  • 183
30
votes
6 answers

Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

Is this possible to configure IIS7 to achieve the same functionality like Apache has regarding wildcard domains? I'm interested in routing user in ASP.NET web application based on subdomain user used in URL. Something like is described…
GrZeCh
  • 2,332
  • 8
  • 29
  • 38
30
votes
2 answers

doctrine2 dql, use setParameter with % wildcard when doing a like comparison

I want to use the parameter place holder - e.g. ?1 - with the % wild cards. that is, something like: "u.name LIKE %?1%" (though this throws an error). The docs have the following two examples: 1. // Example - $qb->expr()->like('u.firstname',…
waigani
  • 3,570
  • 5
  • 46
  • 71
30
votes
4 answers

What's the purpose behind wildcards and how are they different from generics?

I'd never heard about wildcars until a few days ago and after reading my teacher's Java book, I'm still not sure about what's it for and why would I need to use it. Let's say I have a super class Animal and few sub classes like Dog, Cat, Parrot,…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
30
votes
2 answers

Can I do a wildcard (*) search on github.com?

I want to search a repository for any files that end in *Test.java* but if I search for *Test.java* I just get files that contain that exact string. I can't find any information anywhere that suggests this is possible. Is this just due to…
slugmandrew
  • 1,776
  • 2
  • 25
  • 45
28
votes
5 answers

Selecting all columns that start with XXX using a wildcard?

I have several columns in my databases with similar names. How do I select those based on the word they start with? Here's an example table layout: I tried selecting all info for a particular thing (food kind in this example) using $Food =…
Chris
  • 2,905
  • 5
  • 29
  • 30
27
votes
1 answer

Is it possible to use a CSS wildcard in the middle of an attribute selector?

I have some generated CSS and would like to use some css that could select e.g.

Text in here

Using on lorem and Ipsum disregarding Index. Something similar to: p#lorem*Ipsum { } I can generate some more classes, but…
StuperUser
  • 10,555
  • 13
  • 78
  • 137
27
votes
1 answer

Elastic query DSL: Wildcards in terms filter?

I am trying to filter the documents using terms filter. I am not sure how to introduce wildcards in filter. I tried something like this: "filter":{ "bool":{ "must":{ "terms":{ "wildcard" : { …
Mohitt
  • 2,957
  • 3
  • 29
  • 52
26
votes
2 answers

How to search using wildcard in VIM

Using the standard search function (/) in VIM, is there a way to search using a wildcard (match 0 or more characters)? Example: I have an array and I want to find anywhere the array's indices are assigned. array[0] = 1; array[i] =…
Jimmy P
  • 1,790
  • 4
  • 17
  • 32