How do I exclude first two capital letters of a word using regex on Google spreadsheet?How do I make the first letter of a string uppercase in JavaScript?How to negate specific word in regex?Notepad++ Capitalize Every First Letter of Every WordXSD Regex: Capitalize first letter of each wordCapitalize first letter after special charactersREGEX to find the first one or two capitalized words in a stringPython regex pull first capitalized word or first and second words if both are capitalizedRegex to remove all two letter words but exclude certainHow to find and extract first letter capitalized words from text in rExtract capital letters from word boundary
On which topic did Indiana Jones write his doctoral thesis?
Why isn't nylon as strong as kevlar?
what to look for in luxury cars like Acura/Lexus
How wide is a neg symbol, how to get the width for alignment?
What is the difference between 'unconcealed' and 'revealed'?
As matter approaches a black hole, does it speed up?
Purpose of のは in this sentence?
how to overfit?
What matters more when it comes to book covers? Is it ‘professional quality’ or relevancy?
Why was the battle set up *outside* Winterfell?
Are there any Final Fantasy Spirits in Super Smash Bros Ultimate?
Shantae Dance Matching
Using a microphone from the 1930s
Why are prions in animal diets not destroyed by the digestive system?
why do people keep saying me that I am a horrible photographer?
Can my company stop me from working overtime?
Is there an idiom that support the idea that "inflation is bad"?
Can Infinity Stones be retrieved more than once?
How adjust and align properly different equations
String won't reverse using reverse_copy
What are the differences between credential stuffing and password spraying?
What is the name of this hexagon/pentagon polyhedron?
How might a mountain bowl form?
How do I tell my manager that his code review comment is wrong?
How do I exclude first two capital letters of a word using regex on Google spreadsheet?
How do I make the first letter of a string uppercase in JavaScript?How to negate specific word in regex?Notepad++ Capitalize Every First Letter of Every WordXSD Regex: Capitalize first letter of each wordCapitalize first letter after special charactersREGEX to find the first one or two capitalized words in a stringPython regex pull first capitalized word or first and second words if both are capitalizedRegex to remove all two letter words but exclude certainHow to find and extract first letter capitalized words from text in rExtract capital letters from word boundary
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have few words in a column on Google spreadsheet.
E.g. TTTyyy, AAAbbb, JJJkkk etc
I want to extract the word by excluding the first two capital letters.
Desired output is
Tyyy from TTTyyy, Abbb from AAAbbb, Jkkk from JJJkkk etc
regex
add a comment |
I have few words in a column on Google spreadsheet.
E.g. TTTyyy, AAAbbb, JJJkkk etc
I want to extract the word by excluding the first two capital letters.
Desired output is
Tyyy from TTTyyy, Abbb from AAAbbb, Jkkk from JJJkkk etc
regex
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23
add a comment |
I have few words in a column on Google spreadsheet.
E.g. TTTyyy, AAAbbb, JJJkkk etc
I want to extract the word by excluding the first two capital letters.
Desired output is
Tyyy from TTTyyy, Abbb from AAAbbb, Jkkk from JJJkkk etc
regex
I have few words in a column on Google spreadsheet.
E.g. TTTyyy, AAAbbb, JJJkkk etc
I want to extract the word by excluding the first two capital letters.
Desired output is
Tyyy from TTTyyy, Abbb from AAAbbb, Jkkk from JJJkkk etc
regex
regex
asked Mar 22 at 22:13
Joemon T HenryJoemon T Henry
1
1
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23
add a comment |
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23
add a comment |
1 Answer
1
active
oldest
votes
Googlesheets uses REGEXETRACT: Google finds REGEXETRACT regex syntax
Cell C2
="TTTyyy":
A cell like B2
=REGEXEXTRACT(C2,"[A-Z]1[a-z]+")
You can look up the regex in the reference:[A-Z] captures caps and 1 limits the caps to one; then [a-z] captures lowercase letters "+" one or more.
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55308449%2fhow-do-i-exclude-first-two-capital-letters-of-a-word-using-regex-on-google-sprea%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Googlesheets uses REGEXETRACT: Google finds REGEXETRACT regex syntax
Cell C2
="TTTyyy":
A cell like B2
=REGEXEXTRACT(C2,"[A-Z]1[a-z]+")
You can look up the regex in the reference:[A-Z] captures caps and 1 limits the caps to one; then [a-z] captures lowercase letters "+" one or more.
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
add a comment |
Googlesheets uses REGEXETRACT: Google finds REGEXETRACT regex syntax
Cell C2
="TTTyyy":
A cell like B2
=REGEXEXTRACT(C2,"[A-Z]1[a-z]+")
You can look up the regex in the reference:[A-Z] captures caps and 1 limits the caps to one; then [a-z] captures lowercase letters "+" one or more.
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
add a comment |
Googlesheets uses REGEXETRACT: Google finds REGEXETRACT regex syntax
Cell C2
="TTTyyy":
A cell like B2
=REGEXEXTRACT(C2,"[A-Z]1[a-z]+")
You can look up the regex in the reference:[A-Z] captures caps and 1 limits the caps to one; then [a-z] captures lowercase letters "+" one or more.
Googlesheets uses REGEXETRACT: Google finds REGEXETRACT regex syntax
Cell C2
="TTTyyy":
A cell like B2
=REGEXEXTRACT(C2,"[A-Z]1[a-z]+")
You can look up the regex in the reference:[A-Z] captures caps and 1 limits the caps to one; then [a-z] captures lowercase letters "+" one or more.
answered Mar 22 at 22:59
hdunnhdunn
612
612
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
add a comment |
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
hdunn - Thank you. Got the desired output.
– Joemon T Henry
Mar 22 at 23:08
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55308449%2fhow-do-i-exclude-first-two-capital-letters-of-a-word-using-regex-on-google-sprea%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please post code snippets of what you have tried.
– Mocha
Mar 22 at 22:16
Are the first two letters always capital letters or do you have to check for that?
– ArSeN
Mar 22 at 22:18
Mocha - I've not tried anything. New to regex.
– Joemon T Henry
Mar 22 at 22:23
ArSen - Good question. I have few of them without first two capital letters, it is either three capital letters or one capital letter. In case of one capital letter the output should be the same word. E.g For Tyyy output should be same word, Tyyy
– Joemon T Henry
Mar 22 at 22:23