Let's say you have a huge list of text you need to figure out phrase from. You have part of a phrase "Digi**lV*lc*no" but you don't know what's inside the asterisks.
Is there any expression I can use to search an entire piece of text for what that might be?
Help finding a specific value
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Help finding a specific value
You can use regular expressions
[a-zA-Z] will match one letter
[a-zA-Z]+ will match 1 or more letters.
e.g.
[a-zA-Z] will match one letter
[a-zA-Z]+ will match 1 or more letters.
e.g.
Code: Select all
blah[a-zA-Z]blahblah[a-zA-Z]etc
Re: Help finding a specific value
So let's say i'm trying to find out: Di**talV**cano
Would the expression be:
Di[a-zA-Z][a-zA-Z]talV[a-zA-Z][a-zA-Z]cano
Would the expression be:
Di[a-zA-Z][a-zA-Z]talV[a-zA-Z][a-zA-Z]cano
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Help finding a specific value
That should work. You can test it in the Regular Expresssion tester within the program.
Note your example doesn't actually find asterisks, only letters a-z.
To find any character you can use \S
e.g.
Note your example doesn't actually find asterisks, only letters a-z.
To find any character you can use \S
e.g.
Code: Select all
Di\S\StalV\S\Scano