Help finding a specific value

A place to try and solve your RegEx problems.
Post Reply
RJ
Posts: 2
Joined: Thu May 17, 2018 2:52 am

Help finding a specific value

Post by RJ »

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?
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Help finding a specific value

Post by DigitalVolcano »

You can use regular expressions

[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
RJ
Posts: 2
Joined: Thu May 17, 2018 2:52 am

Re: Help finding a specific value

Post by RJ »

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
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Help finding a specific value

Post by DigitalVolcano »

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.

Code: Select all

Di\S\StalV\S\Scano
Post Reply