alternation Questions

2

Solved

I am trying Javascript's regular expression. I understand that '|' is used to or-ing two regular expression. I created a regex /^a*|b*$/, and I want it to detect any string that contains only cha...
Livorno asked 22/8, 2018 at 4:7

6

Solved

I have an Options Menu on my Activity with an MenuItem "Start". When this MenuItem is selected I would like to alter the Menu so it contains a MenuItem "Stop". And finally when "Stop" is selected, ...
Algonquin asked 16/11, 2010 at 22:34

6

Solved

I have quite a straightforward question. Where I work I see a lot of regular expressions come by. They are used in Perl to get replace and/or get rid of some strings in text, e.g.: $string=~s/^.+\...
Camenae asked 5/4, 2016 at 8:6

1

Solved

I am using ruby 2.1, but the same thing can be replicated on rubular site. If this is my string: 儘管中國婦幼衛生監測辦公室制定的 And I do a regex match with this expression: (中國婦幼衛生監測辦公室制定|管中) I am expecti...
Damiano asked 26/8, 2014 at 17:13

1

Solved

Ok, I know there are a couple of other similar questions to this but I am having a real issue with getting the AlternationIndex to work on ListBox or ListView. my xaml is such: <ListBox Borde...
Bramlett asked 21/10, 2013 at 9:54

3

Solved

I thought that by default my Regex would exhibit the greedy behavior that I want, but it is not in the following code: Regex keywords = new Regex(@"in|int|into|internal|interface"); var targets ...
Procurable asked 7/3, 2010 at 2:23
1

© 2022 - 2024 — McMap. All rights reserved.