Words that contain another word

Is there a technical name for a word that contains other words? I’m thinking about the contained words having all the letters in the order they appear in the original word. For example, «spawn» contains spa, pawn, paw. I’m also hoping to find a more technical word than «Kangaroo words» or «Matryoshka words» if there is one—something like «paraprosdokian» or «palindrome» etc.

asked Feb 19, 2016 at 22:13

Thom Blair III's user avatar

1

Kangaroo words may be a special case of what you describe. They are words that contain embedded words (possibly disjointed) which are roughly synonymous with the larger, host word. For example, «observe» contains «see», albeit disjointed (here).

I know of no technical term for the more general phenomenon, but you might call them Matryoshka words, as is done both here and in the first link. It’s suggestive of what you want and colorful.

Community's user avatar

answered Feb 19, 2016 at 22:21

DyingIsFun's user avatar

DyingIsFunDyingIsFun

17.8k3 gold badges45 silver badges72 bronze badges

1

This is a duplicate of a closed question referring to «embedded words.» The top ranked answer was subsequence from the mathematics. However, the natural transition to subword is also possible. It is a mathematical term [Wiktionary] meaning «substring» which is more particular for contiguous symbols.

Community's user avatar

answered Feb 20, 2016 at 4:41

Stu W's user avatar

Stu WStu W

7,0525 gold badges24 silver badges40 bronze badges

1

Tip: See my list of the Most Common Mistakes in English. It will teach you how to avoid mis­takes with com­mas, pre­pos­i­tions, ir­reg­u­lar verbs, and much more.

English speakers are very creative when it comes to making up new words by combining parts of words that already exist. For example, most people know that “brunch” is a combination of “breakfast” and “lunch”, but did you know that “smog” comes from “smoke” and “fog”?

There are lots and lots of such words in English, many more than in other European languages. One of the reasons for that is, of course, that English has many more speakers than other European languages (with the exception of Spanish), so there are more people who can potentially create a catchy new word.

Nevertheless, I believe that the main reason is much more pragmatic. English is a fairly analytic language, which in linguistic jargon refers to a language that, simply put, conveys the function of a word using word order and things like prepositions rather than endings and prefixes. Words in English are thought of as isolated units, whereas words in other European languages often carry additional information, and it is much easier to merge two isolated units than to merge two words carrying a lot of additional information, some of which would inevitably be lost during merging.

But enough of that theoretical nonsense. Let’s take a look at actual examples of such words in English.

English portmanteaus

A portmanteau is a type of blend word in which the beginning of one word is combined with the final part of another word. For example, it may surprise you that the word “bit” used in computing (as in “megabit”) is a portmanteau of ”binary” and “digit” (its development was probably influenced by the fact that “bit” already was an English word meaning a small amount of something). Sometimes the two parts may overlap, e.g. “smash”, which is composed of “smack” and “mash” with “ma” connecting the two parts.

Let’s take a look at some of the most common portmanteaus in English that are more or less accepted (note that the list excludes brand and product names, which are often based on a portmanteau):

alphanumeric = alphabetic + numeric
advertorial = advertisement +‎ editorial
bit = binary + digit (only in computing)
brainiac = brain + maniac
breathalyzer = breath + analyzer
Brexit = Britain + exit
brunch = breakfast + lunch
camcorder = camera + recorder
dumbfound = dumb (mute) + confound
electrocute = electro- + execute
email = electronic + mail
emoticon = emotion + icon
endorphin = endogenous + morphine
fanzine = fan + magazine
forex = foreign + exchange
guesstimate = guess + estimate
infomercial = information + commercial
keytar = keyboard + guitar
labradoodle = labrador + poodle
mechatronics = mechanics +‎ electronics
metrosexual = metropolitan +‎ heterosexual
moped = motor + pedals (borrowed from Swedish)
motel = motor + hotel
napalm = naphthenic + palmitic
Oxbridge = Oxford + Cambridge (used in the UK to refer collectively to the University of Oxford and the University of Cambridge)
newscast = news + broadcast
paratrooper = parachute + troop + -er
phablet = phone + tablet
pulsar = pulsating + star
sexting = sex + texting
sheeple = sheep + people
smash = smack +‎ mash
smog = smoke + fog
Spanglish = Spanish + English
televangelist = television + evangelist
transistor = transconductance or transfer + resistor
vlog = video + blog (itself a shortening of web + log)
vitamin = vital + amine (introduced by a Polish biochemist when it was thought that all vitamins contained an amino acid)
webinar = web + seminar
workaholic = work + -a- + alcoholic

There is also an archaic word “cameleopard”, composed of “camel” and “leopard”, which means “giraffe”. If you are interested in the history of that word (and of the word “giraffe”), you can read my article about them.

Blend words combining the beginnings of two words

Another type of blend words, which are less common than portmanteaus in English, is formed by taking the first part of one word, the first part of another word, and merging them into one word. Here are the most common such words:

Amerind = American + Indian (referring to native Americans)
botox = botulism + toxin
cyborg = cybernetic + organism
cosplay = costume + play
hazmat = hazardeous + mataterial
modem = modulator + demodulator
sitcom = situation + comedy

Subscribe to my educational newsletter

to receive a weekly summary of new articles

Enter your email address below:

Please, enter a valid email address:

You tried to submit the form very quickly after opening this page. To confirm that you are a human, please, click on the button below again:

Use the image

You can use the image on another website, provided that you link to the source article. If you share it on Twitter or Facebook, I kindly ask you to tag my profile @JakubMarian.

If you share it on reddit, please, share a link to the whole article and give credit to my subreddit r/JakubMarian in the comments.

Contents

  • Highest scoring words with Another
  • 7-letter words with Another
  • FAQs about words with Another

The highest scoring words with Another

Want to go straight to the words that will get you the best score? Here are all the highest scoring words with another,
not including the 50-point bonus if they use seven letters.

Top words with Another Scrabble Points Words With Friends Points
another 10 10

1 Scrabble word that contain Another

7 Letter Words With Another

  • another10

FAQ on words containing Another

What are the best Scrabble words with Another?

and
The highest scoring Scrabble word containing Another is Another, which is worth at least 10 points without
any bonuses.

How many words contain Another?

There are 1 words that contaih Another in the Scrabble dictionary.
Of those
and
1 is a 7 letter
word.

What are Compound Words?

Compound words are made by joining two or more words; the combination creates a new word. They can be formed using two nouns, e.g. basketball, two non-nouns, e.g. blowup, or a noun and non-noun, e.g. sunrise. It is important to note that the words do not always keep their original meaning, e.g. breakfast. Our list of compound words contains 500 words.

There are three types of compound words:

  • Closed compound words, e.g., football, peanut,
  • Open compound words, e.g., cell phone, high school, and
  • Hyphenated compound words, e.g., in-depth, runner-up.

List of Compound Words

To determine if a compound word is one word, two words or hyphenated, use a dictionary to look up the word or our lists below. The list below excludes both fractions and compound numbers from 21 to 91. These words are hyphenated, e.g., two-thirds, one-half, thirty-nine and ninety-one.

able-bodied girlfriend sandpaper
A-frame goldfish scarecrow
afternoon grandchildren scatterbrain
afterthought grandfather school day
airborne grandmother school year
airline grandparent screwdriver
airmail grapefruit seacoast
airplane grass roots seafood
airport grasshopper seagull
airtight gridlock seaport
anchorperson groundwater search engine
another grownup seashell
anybody haircut seaside
anyone hamburger seaweed
anyplace handcuff seesaw
anything handlebar self-concept
anytime handshake self-service
anyway hanky-panky shipwreck
anywhere haystack shoelace
applesauce headache shortstop
audiotape headlight showdown
awestruck headquarters showoff
backache headset showroom
backboard heart attack shrink-wrap
backbone heartwarming sidewalk
backbreaking heat lightening silverware
backfire heath care single-minded
background help desk sister-in-law
backlash herringbone skateboard
backpack herself skyscraper
backup high school sleeping bag
backyard high-tech snowball —
ballpark highway snowfall
ballroom hilltop snowflake
barefoot himself snowman
baseball hockey puck snowplow
basketball ho-hum snowshoe
bathroom home page snowstorm
bathtub homemade softball
bedrock homeowner somebody
bedroom homesick someday
bedspread homework somehow
beforehand hot dog someone
benchmark however someplace
birdhouse hush-hush something
birthday ice cream Sometimes
blackbird in-depth somewhat
blackboard indoor somewhere
blowup infield spacewalk
blueberry in-law sports drink
blueprint inside spotlight
bookstore into spreadsheet
bottled water itself springtime
boyfriend jellyfish square root
brainstorm key pal starfish
breakdown keyboard statewide
breakfast kickoff stepbrother
breathtaking know-how stepfather
briefcase know-it-all stepmother
broadcast knucklehead stepsister
brother-in-law ladybug storyteller
buildup landlord straightforward
bulldog leapfrog strawberry
burnout leftover strong-arm
butterfly life span sugarcoat
buttermilk lifeboat suitcase
byproduct lifeguard summertime
campfire life-size sundown
cannot lifestyle sunflower
car pool lightheaded sunlight
caregiver lighthouse sunrise
carpool lightweight sunset
carryover lipstick sunshine
cash flow longshoreman sunstroke
catcher’s mitt loudspeaker suntan
cell phone makeup superhighway
chalkboard marketplace sweatshirt
chat room maybe sweetheart
check-in meantime tablecloth
checkout meanwhile teammate
child care memory stick tennis court
Christmas tree merry-go-round textbook
churchgoer miniskirt Thanksgiving
citywide moonlight theme park
civil rights mother-in-law themselves
classmate motorcycle thirty-nine
clean-cut myself three-dimensional
cleanup nationwide thunderstorm
clipboard network time line
close-up nevertheless time savor
cockpit new world timetable
colorblind newscast tip-off
comic strip newspaper tiptoe
common sense nightgown today
cookbook nitty-gritty toenail
co-op nobody together
cooperative notebook toothbrush
copperhead not-for-profit topsy-turvy
copyright nowhere toss-up
countryside oatmeal touchdown
course work off-site trailblazer
cowboy one-sided tree house
crosswalk ongoing tryout
crossword puzzle online tugboat
cupcake on-site turnaround
database ourselves turnpike
daydream outcome turtleneck
daylight outfield two-thirds
daytime outfit undercover
desktop outlaw underdog
dirt bike outline underground
disc drive outside understatement
disc jockey outsource undertake
doorbell outstanding uproot
doorknob oven mitt upset
downpour overalls upstairs
downstairs overcoat uptown
drawbridge overexposure u-turn
driveway overkill vice president
drugstore overlook videotape
dugout overpass vineyard
dump truck pancake voice mail
earring paper clip waiting room
earthquake paperback walking stick
earthworm paperwork warm-up
easygoing payoff wastebasket
editor-in-chief payroll watercolor
empty-handed peanut waterfall
energy bar peppermint waterfront
everybody percent watermelon
everyday photo ID weatherperson
everyone pinball web site
everything pinpoint webpage
everywhere pitch hitter weekday
extracurricular playground weekend
eyeball playmate well-being
eyebrow ponytail well-to-do
eyelid popcorn wheelchair
fact sheet post office whenever
father-in-law postcard whirlpool
fine arts pothole whiteboard
fingernail prime minister wholesale
fingerprint printout windmill
firefighter proofread windpipe
fireplace quarterback windshield
fireproof quicksand windsurfing
firewood railroad wingspan
fireworks rainbow wiretapping
flashback raincoat without
flashlight rattlesnake woodland
flowchart rawhide woodpecker
flowerpot real estate word processing
folklore redhead word wall
follow-up redwood word-of-mouth
football remote control work boots
forever rock band workday
for-profit role play workforce
free-for-all rollerblade workload
freelance rollout workplace
french fry roly-poly workshop
freshwater run-in workstation
front-runner runner-up worn-out
frostbite runway wristwatch
fund-raiser safety glasses wrongdoing
gentleman sagebrush x-ray
get-together sailboat yourself
gingerbread salad dressing

Closed Words

These words have no spaces. Our list contains hundreds of words, so we organized them in alphabetical order. Click on a letter below to obtain a list of those compound words.

A B C D E F G H I J K L M
N O P Q R S T U V W Y Z
A
afternoon afterthought airborne airline
airmail airplane airport airtight
anchorperson another anybody anyone
anyplace anything anytime awestruck
anyway anywhere applesauce audiotape
B
backache backboard backbone backbreaking
backfire background backlash backpack
backup backyard ballpark ballroom
barefoot baseball basketball bathroom
bedrock bedroom bedspread beforehand
benchmark birdhouse birthday blackbird
blackboard blowup blueprint bookstore
boyfriend brainstorm breakdown breakfast
breathtaking broadcast buildup bulldog
burnout buttermilk byproduct
C
campfire cannot caregiver carpool
carryover chalkboard checkout churchgoer
citywide classmate cleanup clipboard
cockpit colorblind cookbook cooperative
copperhead copyright countryside cowboy
crosswalk cupcake
D
database daydream daylight daytime
desktop doorbell doorknob downpour
downstairs drawbridge driveway drugstore
dugout
E
earring earthquake earthworm easygoing
everybody everywhere everyone everything
everyday extracurricular eyeball eyebrow
eyelid everywhere
F
fingernail fingerprint firefighter fireplace
fireproof firewood fireworks flashback
flashlight flowchart flowerpot folklore
football forever freelance freshwater
frostbite
G
gentlemen gingerbread girlfriend goldfish
grandchildren grandfather grandmother grandparent
grapefruit grasshopper gridlock groundwater
grownup
H
haircut hamburger handcuff handlebar
handshake haystack headache headlight
headquarter headset heartwarming herringbone
herself highway hilltop himself
homemade homeowner homesick homework
however
I
iceberg icebox icebreaker inchworm
indoor infield inside into
itself innkeeper
J
jackknife jackpot jackrabbit jawbone
jaywalk jellyfish jigsaw jumpsuit
K
keyboard kickoff knucklehead keepsake
kettledrum kickball keyhole keynote
killjoy kindhearted kneecap knighthood
knothole knucklehead keystone
L
leapfrog ladybug landlord leftover
lifeboat lifeguard lifestyle lightheaded
lighthouse lightweight lipstick longshoremen
loudspeaker
M
makeup marketplace maybe meantime
meanwhile miniskirt moonlight motorcycle
myself
N
nationwide network nevertheless newscast
newspaper nightgown nobody notebook
nowhere
O
oatmeal ongoing online ourselves
outcome outfield outfit outlaw
outline outside outsource outstanding
overalls overcoat overexposure overkill
overlook overpass
P
pancake paperback paperwork payoff
payroll peanuts peppermint percent
pinball playground playmate ponytail
popcorn postcard pothole printout
proofread
Q
quarrelsome quarterback quartermaster quicksand
quicksilver
R
railroad rainbow raincoat rattlesnake
rawhide redhead redwood rollerblade
rollout runway
S
sagebrush sailboat sandpaper scarecrow
scatterbrain screwdriver seacoast seafood
seagull seaport seashell seaside
seaweed seesaw shipwreck shoelace
shortstop shutdown showoff showroom
sidewalk silverware skateboard skyscraper
snowball snowfall snowflake snowman
snowplow snowshoe snowstorm softball
somebody someday somehow someone
someplace something sometimes somewhat
somewhere spacewalk spotlight spreadsheet
springtime starfish statewide stepbrother
stepfather stepmother stepsister storyteller
straightforward strawberry sugarcoat suitcase
summertime sundown sunflower sunlight
sunrise sunset sunshine sunstroke
suntan superhighway sweatshirt
T
tablecloth teammate textbook Thanksgiving
themselves thunderstorm timetable tiptoe
today toenail together toothbrush
touchdown trailblazer tryout tugboat
turnaround turnpike turtleneck
U
undercover underdog underground understatement
undertake upstairs uptown uproot
upset
V
venturesome videocassette videotape vineyard
viewfinder viewpoint volleyball vouchsafe
W
wastebasket watercolor waterfall waterfront
watermelon weatherperson webpage weekday
weekend wheelchair whenever whirlpool
whiteboard wholesale windmill windpipe
windshield windsurfing wingspan wiretapping
without woodland woodpecker workday
workforce workload workplace workshop
workstation wristwatch wrongdoing
Y
yardarm yardstick yearbook yourself
Z
zookeeper

TOP OF PAGE

Open Words

Open compound words have a space between the words. The following are open compound words:

bottled water car pool cash flow cell membrane
cell phone chat room child care Christmas tree
civil right comic strip common sense course work
crossword puzzle dirt bike disk drive disc jockey
dump truck energy bar fact sheet fine art
French fry grass root health care heart attack
heat lightning help desk high school hockey puck
home page hot dog ice cream jigsaw puzzle
jungle gym junk food jumping jack key pal
killer whale Labor Day labor union laser printer
land mine lance corporal landing field landing strip
light bulb life jacket life raft life vest
life belt life buoy Little Dipper little finger
life span memory stick new world oven mitt
paper clip photo ID pinch hitter post office
paddle wheel passenger pigeon past tense past participle
peace pipe physical education picture graph planet kingdom
prime minister radiant energy radio wave real time
report card respiratory system rib cage right angle
right triangle ring finger rock dove rocking chair
rocking horse role model roller coaster Roman Catholic
root beer real estate remote control rock band
role play safety glasses salad dressing school day
school year search engine sleeping bag sports drink
square root tennis court theme park time line
time capsule tree house vacuum cleaner Valentine’s Day
vampire bat vanilla bean vending machine vice president
video camera videocassette recorder video game videotape recorder
virtual reality vocal chords voice box voice mail
waiting room walking stick web site word processing
word wall work boots

TOP OF PAGE

Hyphenated Words

The list below excludes spelled out fractions and compound numbers from 21 to 91. Please note you hyphenate all spelled out fractions, e.g., two-thirds, one-half, and compound numbers from 21 to 91, e.g., thirty-nine, ninety-one. The following are hyphenated compound words:

able-bodied A-frame brother-in-law check-in
clean-cut close-up co-op editor-in-chief
empty-handed father-in-law follow-up for-profit
free-for-all front-runner fund-raiser get-together
hanky-panky high-tech ho-hum hush-hush
in-depth in-law in-line skate jack-o’-lantern
jet-propelled king-size know-how know-it-all
life-size merry-go-round mother-in-law nitty-gritty
not-for-profit off-site one-sided on-site
pitch-black pitch-dark play-off quick-tempered
roly-poly run-in runner-up self-concept
self-service shrink-wrap single-minded strong-arm
three-dimensional tip-off topsy-turvy toss-up
two-dimensional u-turn warm-up well-being
well-to-do word-of-mouth warn-out X-ray

TOP OF PAGE

Source: Fry, E.B., Ph.D. & Kress, J.E., Ed.D. (2006). The Reading Teacher’s Book of Lists 5th Edition. San Francisco, CA: Jossey Bass.

Merriam-Webster Children’s Dictionary, 3rd Edition 2008.

Reader Interactions

Word Unscrambler is a tool specifically created to help you find the highest-scoring words for Scrabble, Words with Friends, and other word games. By entering your current letter tiles, Word Unscrambler’s unique search engine will suggest all valid words from the selection given.

Word Unscrambler — Definition and Examples

Word Unscrambler helps you to find the best cheats and highest scoring words for Scrabble, Words with Friends and many other word games.

When playing Words with Friends or Scrabble, you can come across tricky tiles. No matter our skill level, it’s sometimes useful to make use of a tool like unscramble and get a fresh perspective on all playable words.

What is the Word Unscrambler Tool?

In a nutshell, a word unscrambler is a tool that you enter all your letters in your hand and it rearranges them to reveal all possible word combinations.

Some people may worry that this is a way to cheat. However, if all game participants have an option to use a word unscrambler, then there’s certainly an even playing field. A player may decide not to use the unscrambling tool and come up with words on their own. Having said that, they might want to use it afterwards to test themselves and see the full list of potential words that they could have played.

How to Use Word Unscramblers

Simply enter the tiles you are struggling with and we will unscramble the letters into something that not only makes sense but will also reward you with the highest score possible. Think of us as a helping hand that also helps boost your mental dexterity and vocabulary. A bit of jumble solving each day helps you become a top word unscrambler!

Benefits of Using WordTips Word Unscramble

As you can see, there are different ways that a word descrambling device can be employed. And, there are no hard and fast rules about when to use one. What’s more, word unscramblers can be useful in board games like Scrabble and Words with Friends as well as crossword puzzles and games like hangman or Word A Round ─ virtually any word game that you can think of. You can even enjoy using it while playing along at home with a word-based TV game show!

Now that you know a little bit about it, are you interested in some examples of how to use the tool and the benefits it gets you? Here’s what we have for you:

A. Win Word Games

Player A is a Scrabble participant who is baffled by how to get the highest score from the following scrambled letters on their rack ─ ERIKNRG.

When they enter the letters into the word descrambler, it shows a number of words using two or more of the letters. The highest points ─ 15 ─ are for the word GHERKIN that uses all seven letters, not a word that may ordinarily come to mind quickly!

B. Boost Your Vocabulary

Player B is a young person playing Word A Round (a game for ages 10 and up) and they’re trying to be the first to unravel the following scrambled letters around the game card ─ LANIMA (6-letter word), ULHELPF (7-letter word) and RELSQUIR (8-letter word).

By using a word unscrambler, they’ll find these words ─ ANIMAL, HELPFUL and SQUIRREL. Any boost that you can give a child while they’re learning how to play will encourage a love of the game. In turn, they will be excited to try to win and want to play more. This will really enlarge their vocabulary!

Letters vs. Words

Unscramble Letters

Working with such a device can definitely be of benefit when attempting to unscramble letters to make words. Furthermore, our Word Unscrambler is a great word solver. It will accommodate up to 15 letters and locate a truly amazing array of words using all manner of combinations of vowels and constants. You can also use the advanced search to find words that begin or end with specific letters. And, that’s not all! The Word Unscrambler can be of service when you want to check out words that contain certain letters or see words with letters in a particular position. If you need to select words using a distinct dictionary, we’ve got that covered too by including all references that you may need.

Unscramble Words

A word unscrambling tool can, of course, be a support to unscramble jumbled words. The English language is fascinating in its variety. Spellings are not always very intuitive. Silent letters appear and pronunciation emphasis on different syllables can be confusing. It’s said to be one of the most difficult languages in the world to learn! Also, there are words that sound the same but are spelled using different letters and have totally unrelated definitions. Therefore, having our Word Unscrambler at your fingertips can be a real plus when you’re attempting to sort out what words the mixed-up letters reveal.

6 Tips and Tricks to Unscramble Words

There are a number of tips and tricks that can be beneficial to unscramble words from jumbled letters. Everyone has their favorites ─ maybe tried and true ones that have worked for them in the past to make words or some that they find quick and easy to use. Following are some tips and tricks that we suggest to help you find the answers to the puzzle of letters you have before you.

  • Separate the consonants from the vowels.
  • Try to match various consonants with vowels to see what you come up with. All words need to have vowels. Also, while you can have a word with just one vowel, such as “A” or “I”, consonants cannot stand on their own.
  • Look for short words to start with such as those with 2 or 3 letters. Then, find out if you can lengthen these by pluralizing them or adding any letters you have that can change the tense.
  • Pick our any prefixes or suffixes that can extend the length of the words you come up with.
  • Play with a pencil and paper to create a list of possible words. Make sure to check the spelling to ensure that you haven’t just made up a non-existent word!
  • If you’re playing a word game with tiles, move them around to see if a word materializes when you look at different letter combinations.

Top 10 Most Popular Unscrambling Examples

Now that you’re well on your way to understanding what you need to know about word unscrambler tools, you’re probably itching to try out our Word Unscrambler! Before you get going, let us show you some of the most popular unscrambling examples. We’ve focused on 7-letter words here since that’s the number of tiles you have in two of the most well-known word games ─ Scrabble and Words with Friends.

  1. EE CFRPT becomes PERFECT
  2. AU BDHNS becomes HUSBAND
  3. AEE CHTR becomes TEACHER
  4. EEI CCNS becomes SCIENCE
  5. AEI CCLPS becomes SPECIAL
  6. AOU LPPR becomes POPULAR
  7. AE PRE MD becomes PREMADE
  8. ING O NSW becomes SNOWING
  9. RE EO DNZ becomes REZONED
  10. AOE SMEW becomes AWESOME

I’m setting up some goals in Google Analytics and could use a little regex help.

Lets say I have 4 URLs

http://www.anydotcom.com/test/search.cfm?metric=blah&selector=size&value=1
http://www.anydotcom.com/test/search.cfm?metric=blah2&selector=style&value=1
http://www.anydotcom.com/test/search.cfm?metric=blah3&selector=size&value=1
http://www.anydotcom.com/test/details.cfm?metric=blah&selector=size&value=1

I want to create an expression that will identify any URL that contains the string selector=size but does NOT contain details.cfm

I know that to find a string that does NOT contain another string I can use this expression:

(^((?!details.cfm).)*$)

But, I’m not sure how to add in the selector=size portion.

Any help would be greatly appreciated!

asked Jun 1, 2010 at 20:21

Chris Stahl's user avatar

0

This should do it:

^(?!.*details.cfm).*selector=size.*$

^.*selector=size.*$ should be clear enough. The first bit, (?!.*details.cfm) is a negative look-ahead: before matching the string it checks the string does not contain «details.cfm» (with any number of characters before it).

answered Jun 1, 2010 at 20:26

Kobi's user avatar

KobiKobi

134k41 gold badges256 silver badges289 bronze badges

3

^(?=.*selector=size)(?:(?!details.cfm).)+$

If your regex engine supported posessive quantifiers (though I suspect Google Analytics does not), then I guess this will perform better for large input sets:

^[^?]*+(?<!details.cfm).*?selector=size.*$

answered Jun 1, 2010 at 20:27

Tomalak's user avatar

TomalakTomalak

330k66 gold badges523 silver badges623 bronze badges

3

regex could be (perl syntax):

`/^[(^(?!.*details.cfm).*selector=size.*)|(selector=size.*^(?!.*details.cfm).*)]$/`

answered Jun 1, 2010 at 20:35

djipko's user avatar

1

There is a problem with the regex in the accepted answer. It also matches abcselector=size, selector=sizeabc etc.

A correct regex can be ^(?!.*bdetails.cfmb).*bselector=sizeb.*$

Explanation of the regex at regex101:

enter image description here

answered Mar 31, 2021 at 0:12

Arvind Kumar Avinash's user avatar

1

I was looking for a way to avoid --line-buffered on a tail in a similar situation as the OP and Kobi’s solution works great for me. In my case excluding lines with either «bot» or «spider» while including ' / ' (for my root document).

My original command:

tail -f mylogfile | grep --line-buffered -v 'bot|spider' | grep ' / '

Now becomes (with -P perl switch):

tail -f mylogfile | grep -P '^(?!.*(bot|spider)).*s/s.*$'

J. Scott Elblein's user avatar

answered Jun 16, 2016 at 11:11

roon's user avatar

Понравилась статья? Поделить с друзьями:
  • Words starting with the word extra
  • Words that can be formed from the word teachers
  • Words starting with i four letter word
  • Words starting from word
  • Words starting a sentence for each word