Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/julians/regex-workshop


https://github.com/julians/regex-workshop

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Kleiner RegEx-Workshop

## Suchen und Ersetzen im Editor:

**Textmate: ⌘+F** – im Fenster »Regular Expression« checken.

**Sublime Text: ⌘+⌥+F** – den Regular-Expression-Button unten links anklicken.

http://regexpal.com

```python
import re

pattern = re.compile(r";")
pattern.findall("hallo;zwei;drei")
>>>[';', ';']

re.match(r";", "hallo;zwei;drei")
>>>
re.search(r";", "hallo;zwei;drei").group(0)
>>>';'
re.split(r";", "hallo;zwei;drei")
>>>['hallo', 'zwei', 'drei']
```