Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
^.*(apparel|regenerate|impossible).*$
This should block all letters and messages containing "apparel", "regenerate", or "impossible" anywhere within them. But it doesn't seem to be working. I still get these errors and I'm not sure why... Can you tell what I'm doing wrong?
What exactly is happening that you don't want to happen, or what is not happening that you want to happen? :D Which errors are you referring to?
Your regex *should* basically be correct. Making the first "any" (*) quantifier lazy (*?) would improve performance a bit, and currently your regex is case-sensitive, so "apparel", "regenerate", or "impossible" would have to be lowercase to be matched correctly (I don't know if they are lowercase in the game), so the following regex might be "better" if you don't care about capitalization:
^.*?([Aa]pparel|[Rr]egenerate|[Ii]mpossible).*$
But I'm not sure what errors you are referring to?
what if I wanted to add another kind of letter (use of , )?
You can play around with this example here and add your actual other kind of letter and see if it will work: https://regex101.com/r/1NC6JS/1
I'm actually not sure if the actual ground-penetrating scan messages are *letters* (the things that pop up to the right) or *messages* (in the top left of the screen). If they are *messages* then there's a dedicated input field for that regex, so you wouldn't have to combine it with the Masterwork/Legendary work regex (for messages)
Would (^.*?[Ww]ork$)|(lump) work then?
If you want to go the absolute safe route try something like
1. wouldn't work with letters added by mods and
2. would depend on the language settings
3. would be a pain to update every time something in the game changes
So perhaps I'll come up with something better in the future, but for now it's regex (: