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: 
With your shown samples, could you please try following. Using [`str.extract`](https://pandas.pydata.org/docs/reference/api/pandas.Series.str.extract.html) function of Pandas. Simple explanation would be, using regex `^.{4}(.*)$` by which getting everything apart from 1st 4 characters into capturing group and saving it to new column.

```
df['new_col'] = df['col_a'].str.extract(r'^.{4}(.*)$',expand=False)

```

Output of df will be as follows:

```
     col_a new_col
0   XYZ123      23
1  ABCD001     001

```
Another way;

Extract alphanumerics left of the first 3 alphanumerics

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

```