Skip to content

Commit 38f939c

Browse files
eseyffarthMattias Schlenker
authored andcommitted
pick-24 improve presentation of python REPL blocks
1 parent 89cfde1 commit 38f939c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/common/de/regexes.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ re.IGNORECASE
496496
Um das Verhalten der regulären Ausdrücke von C nachzubilden, das auch in vielen
497497
Python-Komponenten genutzt wird, schränken Sie auf ASCII ein:
498498

499-
[{shell}]
499+
[{pycon}]
500500
----
501501
>>> re.ASCII
502502
re.ASCII
@@ -508,7 +508,7 @@ gegen einen String matchen und die xref:matchgroups[Match-Gruppe] ausgeben,
508508
Match ausgegeben, der zum ersten in einer runden Klammer gruppierten
509509
Unterausdruck passt:
510510

511-
[{shell}]
511+
[{pycon}]
512512
----
513513
>>> x = re.match('M[ae]{1}[iy]{1}e?r', 'Meier')
514514
>>> x.group(0)

src/common/en/regexes.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ re.IGNORECASE
440440

441441
To emulate the behavior of C's regular expressions, which are also used in many Python components, you can restrict to ASCII:
442442

443-
[{shell}]
443+
[{pycon}]
444444
----
445445
>>> re.ASCII
446446
re.ASCII
@@ -449,7 +449,7 @@ re.ASCII
449449
Now you can use the function `re.match()` to directly match a regular expression against a string and output the xref:matchgroups[match group]:
450450
`group(0)` stands for the whole match, and `group(1)` the match that is the first that matches the sub-expression enclosed within round brackets:
451451

452-
[{shell}]
452+
[{pycon}]
453453
----
454454
>>> x = re.match('M[ae]{1}[iy]{1}e?r', 'Meier')
455455
>>> x.group(0)

0 commit comments

Comments
 (0)