Question: I am a bit confused as I need to pass a value within one component to another component at the same level.

My App.js has the following components:

```
return (
    <ThemeProvider theme={theme}>
      <div className={classes.root}>
        <CssBaseline />
        <nav className={classes.drawer}>
        </nav>
        <div className={classes.app}>
          <Header onDrawerToggle={handleDrawerToggle} jobAddress={jobAddress} />
          <Content />  
        </div>
      </div>
    </ThemeProvider>
  );

```

Based on a `jobAddress` value (123 Main Street) provided by the user within the `<Content />` component, how can I feed this `jobAddress` value back up into the `<Header />` component as a prop/state value as I want to make sure that whenever the value is altered within `<Content />`, it is also reflected within `<Header />`

I have not provided any code as I basically am not sure how to approach this. I have read up on React Context API.

Answer: 
Try with string slicing:

```
df['new_col']=df['col_a'].str[4:]

```

**OR**

Via re module:

```
import re
df['new_col']=df['col_a'].apply(lambda x:re.findall('[0-9]+', x)[0])

```
Another way;

Extract alphanumerics left of the first 3 alphanumerics

```
df['new_col']= df.col_a.str.extract('((?<=^\w{3})\w+)')

```